/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package sge.UI;

import java.awt.BorderLayout;
import java.awt.Component;
import java.awt.Container;
import java.awt.Toolkit;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStream;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.DefaultComboBoxModel;
import javax.swing.ImageIcon;
import javax.swing.JComboBox;
import javax.swing.JFileChooser;
import sge.Control.ControladorDAO;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.filechooser.FileFilter;
import javax.swing.text.JTextComponent;
import net.sf.jasperreports.swing.JRViewer;
import sge.DAO.AsistenteDAO;
import sge.DAO.AsistenteEventoDAO;
import sge.DAO.EventoDAO;
import sge.DAO.UsuarioDAO;
import sge.DAO.ExpositorDAO;
import sge.DAO.HorarioDAO;
import sge.DAO.LugarDAO;
import sge.DAO.MaterialDAO;
import sge.DAO.PagoDAO;
import sge.DAO.ReciboDAO;
import sge.Entidades.*;
import sge.Utilidades.Reportes.GeneradorReporte;
import sge.Utilidades.Reportes.Reporte;

/**
 *
 * @author danielha
 */
public class FRMPrincipal extends javax.swing.JFrame {

    ExpositorDAO expositorDAO = new ExpositorDAO();
    AsistenteDAO asistenteDAO = new AsistenteDAO();
    EventoDAO eventoDAO = new EventoDAO();
    MaterialDAO materialDAO = new MaterialDAO();
    HorarioDAO horarioDAO = new HorarioDAO();
    PagoDAO pagoDAO = new PagoDAO();
    UsuarioDAO usuarioDAO = new UsuarioDAO();
    LugarDAO lugarDAO = new LugarDAO();
    ReciboDAO reciboDAO = new ReciboDAO();
    AsistenteEventoDAO asistenteEventoDAO = new AsistenteEventoDAO();
    
    private GeneradorReporte reporteador = new GeneradorReporte();
    private boolean escarapelasAsistente = true;
    /**
     * Creates new form FRMPrincipal
     */
    public FRMPrincipal() {

        configurarDespliege();
        initComponents();
        cargaTablas();
        cargarListas();
        this.setLocationRelativeTo(null);
        setVisible(true);

        dialogLogin.pack();
        dialogLogin.setLocationRelativeTo(this);
        dialogLogin.setVisible(true);
        
        //Darle fondo al panelInicio
        PanelInicio.add(new Fondo("/imagenes/bg1.png", PanelInicio.getSize()), BorderLayout.CENTER);

    }

    private void configurarDespliege() {
        Toolkit tool = Toolkit.getDefaultToolkit();
        //setSize(tool.getScreenSize());
        //setMinimumSize(tool.getScreenSize());
        //setExtendedState(javax.swing.JFrame.MAXIMIZED_BOTH);

        setTitle("Sistema de Gestión de Eventos | SGE [" + new SimpleDateFormat(
                "dd/MM/yyyy hh:mm:ss").format(new Date()) + "]");
    }

    private void cargaTablas() {

        tablaExpositor.setModel(expositorDAO.seleccionar());
        tablaAsistente.setModel(asistenteDAO.seleccionar());
        tablaEvento.setModel(eventoDAO.seleccionar());
        tablaMaterial.setModel(materialDAO.seleccionar());
        tablaHorario.setModel(horarioDAO.seleccionar());
        tablaPago.setModel(pagoDAO.seleccionar());
        tablaUsuarios.setModel(usuarioDAO.seleccionar());
        tablaLugar.setModel(lugarDAO.seleccionar());
    }

    private void cargarListas() {
        jcbListaReportes.setModel(new DefaultComboBoxModel(reporteador.getReportes().toArray()));
    }
        
    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        dialogEvento = new javax.swing.JDialog(this);
        jPanel4 = new javax.swing.JPanel();
        dbtnCancelarEvento = new javax.swing.JButton();
        dbtnEditarEvento = new javax.swing.JButton();
        dbtnCrearEvento = new javax.swing.JButton();
        dlbNombreEvento = new javax.swing.JLabel();
        dlbTipoEvento = new javax.swing.JLabel();
        dlbCupoEvento = new javax.swing.JLabel();
        dlbFechaInicioEvento = new javax.swing.JLabel();
        dlbFechaFinalEvento = new javax.swing.JLabel();
        dlbExpositorEvento = new javax.swing.JLabel();
        dlbPagoExpositor = new javax.swing.JLabel();
        dlbLugarEvento = new javax.swing.JLabel();
        dlbTemaEvento = new javax.swing.JLabel();
        dlbPrecioEvento = new javax.swing.JLabel();
        dtfNombreEvento = new javax.swing.JTextField();
        dtfCupoEvento = new javax.swing.JTextField();
        comboTipoEvento = new javax.swing.JComboBox();
        dateFechaInicioEvento = new com.toedter.calendar.JDateChooser();
        dateFechaFinalEvento = new com.toedter.calendar.JDateChooser();
        dtfTemaEvento = new javax.swing.JTextField();
        dtfPrecioEvento = new javax.swing.JTextField();
        comboExpositorEvento = new javax.swing.JComboBox();
        dtfPagoExpositorEvento = new javax.swing.JTextField();
        comboLugarEvento = new javax.swing.JComboBox();
        dlbMaterialEvento = new javax.swing.JLabel();
        comboMaterialEvento = new javax.swing.JComboBox();
        dlbHoraInicioEvento = new javax.swing.JLabel();
        dlbHoraFinalEvento = new javax.swing.JLabel();
        spinHoraInicioEvento = new com.toedter.components.JSpinField();
        spinMinutoInicioEvento = new com.toedter.components.JSpinField();
        spinMinutoInicio2Evento = new com.toedter.components.JSpinField();
        spinHoraFinalEvento = new com.toedter.components.JSpinField();
        spinMinutoFinalEvento = new com.toedter.components.JSpinField();
        spinMinutoFinal2Evento = new com.toedter.components.JSpinField();
        dialogAsistente = new javax.swing.JDialog(this);
        jPanel1 = new javax.swing.JPanel();
        jPanel2 = new javax.swing.JPanel();
        jPanel7 = new javax.swing.JPanel();
        dbtnCrearAsistente = new javax.swing.JButton();
        dbtnEditarAsistente = new javax.swing.JButton();
        dbtnCancelarAsistente = new javax.swing.JButton();
        dlbCedulaAsistente = new javax.swing.JLabel();
        dlbNombreAsistente = new javax.swing.JLabel();
        dlbApellidoAsistente = new javax.swing.JLabel();
        dlbTelefonoAsistente = new javax.swing.JLabel();
        dlbDireccionAsistente = new javax.swing.JLabel();
        dlbEmailAsistente = new javax.swing.JLabel();
        dlbFechaAsistente = new javax.swing.JLabel();
        dtfEmailAsistente = new javax.swing.JTextField();
        dtfDireccionAsistente = new javax.swing.JTextField();
        dtfTelefonoAsistente = new javax.swing.JTextField();
        dtfApellidoAsistente = new javax.swing.JTextField();
        dtfNombreAsistente = new javax.swing.JTextField();
        dtfCedulaAsistente = new javax.swing.JTextField();
        dtfFechaAsistente = new com.toedter.calendar.JDateChooser();
        dialogExpositor = new javax.swing.JDialog(this);
        jPanel5 = new javax.swing.JPanel();
        dlbCedulaExpositor1 = new javax.swing.JLabel();
        dtfCedulaExpositor = new javax.swing.JTextField();
        dlbNombreExpositor = new javax.swing.JLabel();
        dtfNombreExpositor = new javax.swing.JTextField();
        dlbApellidoExpositor = new javax.swing.JLabel();
        dtfApellidoExpositor = new javax.swing.JTextField();
        dlbTituloExpositor = new javax.swing.JLabel();
        dtfTituloExpositor = new javax.swing.JTextField();
        dlbEmailExpositor = new javax.swing.JLabel();
        dtfEmailExpositor = new javax.swing.JTextField();
        dlbTelefonoExpositor = new javax.swing.JLabel();
        dtfTelefonoExpositor = new javax.swing.JTextField();
        dlbDireccionExpositor = new javax.swing.JLabel();
        dtfDireccionExpositor = new javax.swing.JTextField();
        dlbPerfilExpositor = new javax.swing.JLabel();
        dtfPerfilExpositor = new javax.swing.JTextField();
        jPanel6 = new javax.swing.JPanel();
        dbtnCrearExpositor = new javax.swing.JButton();
        dbtnEditarExpositor = new javax.swing.JButton();
        dbtnCancelarExpositor = new javax.swing.JButton();
        dialogMaterial = new javax.swing.JDialog(this);
        jPanel10 = new javax.swing.JPanel();
        dtfDescripcionMaterial = new javax.swing.JTextField();
        dlbDescripcionMaterial = new javax.swing.JLabel();
        dtfCostoMaterial = new javax.swing.JTextField();
        dlbCostoMaterial = new javax.swing.JLabel();
        dtfNombreMaterial = new javax.swing.JTextField();
        dlbNombreMaterial = new javax.swing.JLabel();
        dbtnCancelarMaterial = new javax.swing.JButton();
        dbtnEditarMaterial = new javax.swing.JButton();
        dbtnCrearMaterial = new javax.swing.JButton();
        dialogLogin = new javax.swing.JDialog(this);
        jPanel12 = new javax.swing.JPanel();
        lbAcceder = new javax.swing.JLabel();
        lbUsuario1 = new javax.swing.JLabel();
        lbContraseña = new javax.swing.JLabel();
        tfUsuario = new javax.swing.JTextField();
        tfContraseña = new javax.swing.JPasswordField();
        jPanel13 = new javax.swing.JPanel();
        brnCancelar = new javax.swing.JButton();
        btnIngresar = new javax.swing.JButton();
        dialogPago = new javax.swing.JDialog(this);
        jPanel14 = new javax.swing.JPanel();
        jPanel15 = new javax.swing.JPanel();
        dlbTipoClientePago = new javax.swing.JLabel();
        dtfTipoClientePago = new javax.swing.JComboBox();
        dlbClientePago = new javax.swing.JLabel();
        dtfClientePago = new javax.swing.JComboBox();
        dlbValorPago = new javax.swing.JLabel();
        dtfValorPago = new javax.swing.JTextField();
        dlbFechaPago = new javax.swing.JLabel();
        dtfFechaPago = new javax.swing.JFormattedTextField();
        dlbTipoPago = new javax.swing.JLabel();
        dtfTipoPago = new javax.swing.JComboBox();
        dlbEventoPago = new javax.swing.JLabel();
        dtfEventoPago = new javax.swing.JTextField();
        jPanel16 = new javax.swing.JPanel();
        dbtnPagar = new javax.swing.JButton();
        dbtnCancelarPago = new javax.swing.JButton();
        dialogUsuario = new javax.swing.JDialog(this);
        dbtnCrearUsuario = new javax.swing.JButton();
        dbtnEditarUsuario = new javax.swing.JButton();
        dbtnCancelarUsuario = new javax.swing.JButton();
        jLabel2 = new javax.swing.JLabel();
        tfDocumentoUsuario = new javax.swing.JTextField();
        jLabel3 = new javax.swing.JLabel();
        tfClaveUsuario = new javax.swing.JPasswordField();
        jLabel4 = new javax.swing.JLabel();
        tfNombreUsuario = new javax.swing.JTextField();
        jLabel5 = new javax.swing.JLabel();
        tfApellidoUsuario = new javax.swing.JTextField();
        jLabel6 = new javax.swing.JLabel();
        tfDireccionUsuario = new javax.swing.JTextField();
        jLabel7 = new javax.swing.JLabel();
        tfTelefonoUsuario = new javax.swing.JTextField();
        jLabel8 = new javax.swing.JLabel();
        tfTipoUsuario = new javax.swing.JComboBox();
        jLabel9 = new javax.swing.JLabel();
        tfCargoUsuario = new javax.swing.JTextField();
        dialogLugar = new javax.swing.JDialog(this);
        jPanel11 = new javax.swing.JPanel();
        dtfDescripcionLugar = new javax.swing.JTextField();
        dlbDescripcionLugar = new javax.swing.JLabel();
        dtfCapacidadLugar = new javax.swing.JTextField();
        dlbCapacidadLugar = new javax.swing.JLabel();
        dtfNombreLugar = new javax.swing.JTextField();
        dlbNombreLugar = new javax.swing.JLabel();
        dbtnCancelarLugar = new javax.swing.JButton();
        dbtnEditarLugar = new javax.swing.JButton();
        dbtnCrearLugar = new javax.swing.JButton();
        btnEditarEvento = new javax.swing.JButton();
        btnVerMaterialesEvento = new javax.swing.JButton();
        btnVerAsistentesEvento = new javax.swing.JButton();
        lbParticipanteEscarapela = new javax.swing.JLabel();
        slParticipanteEscarapela = new javax.swing.JComboBox();
        dialogMatricula = new javax.swing.JDialog(this);
        jButton1 = new javax.swing.JButton();
        jButton2 = new javax.swing.JButton();
        jPanel3 = new javax.swing.JPanel();
        jLabel12 = new javax.swing.JLabel();
        tfMatriculaValorPago = new javax.swing.JTextField();
        jcbMatriculaTipoPago = new javax.swing.JComboBox();
        jLabel13 = new javax.swing.JLabel();
        jLabel14 = new javax.swing.JLabel();
        tfMatriculaObservacionPago = new javax.swing.JTextField();
        jPanel8 = new javax.swing.JPanel();
        jLabel11 = new javax.swing.JLabel();
        tfMatriculaCosto = new javax.swing.JTextField();
        jcbMatriculaEvento = new javax.swing.JComboBox();
        jLabel10 = new javax.swing.JLabel();
        PanelPrincipal = new javax.swing.JPanel();
        panelSeleccion = new javax.swing.JTabbedPane();
        PanelInicio = new javax.swing.JPanel();
        lblUsuarioInicio = new javax.swing.JLabel();
        lblBienvenido = new javax.swing.JLabel();
        PanelExpositor = new javax.swing.JPanel();
        jScrollPane3 = new javax.swing.JScrollPane();
        tablaExpositor = new javax.swing.JTable();
        btnNuevoExpositor = new javax.swing.JButton();
        btnEditarExpositor = new javax.swing.JButton();
        btnEliminarExpositor = new javax.swing.JButton();
        btnActivarExpositor = new javax.swing.JButton();
        panelAsistente = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        tablaAsistente = new javax.swing.JTable();
        btnCrearAsistente = new javax.swing.JButton();
        btnModificarAsistente = new javax.swing.JButton();
        btnEliminarAsistente = new javax.swing.JButton();
        btnActivarAsistente = new javax.swing.JButton();
        btnMatricular = new javax.swing.JButton();
        PanelEvento = new javax.swing.JPanel();
        jScrollPane2 = new javax.swing.JScrollPane();
        tablaEvento = new javax.swing.JTable();
        btnNuevoEvento = new javax.swing.JButton();
        btnEliminarEvento = new javax.swing.JButton();
        btnActivarEvento = new javax.swing.JButton();
        PanelMaterial = new javax.swing.JPanel();
        btnCrearMaterial = new javax.swing.JButton();
        btnEliminarMaterial = new javax.swing.JButton();
        btnModificarMaterial = new javax.swing.JButton();
        jScrollPane4 = new javax.swing.JScrollPane();
        tablaMaterial = new javax.swing.JTable();
        PanelLugar = new javax.swing.JPanel();
        jScrollPane8 = new javax.swing.JScrollPane();
        tablaLugar = new javax.swing.JTable();
        btnCrearLugar = new javax.swing.JButton();
        btnModificarLugar = new javax.swing.JButton();
        btnEliminarLugar = new javax.swing.JButton();
        PanelPago = new javax.swing.JPanel();
        jScrollPane6 = new javax.swing.JScrollPane();
        tablaPago = new javax.swing.JTable();
        btnNuevoPago = new javax.swing.JButton();
        PanelHorario = new javax.swing.JPanel();
        jScrollPane5 = new javax.swing.JScrollPane();
        tablaHorario = new javax.swing.JTable();
        btnRefresh = new javax.swing.JButton();
        PanelEscarapela = new javax.swing.JPanel();
        jPanel9 = new javax.swing.JPanel();
        lbNombreEscarapela = new javax.swing.JLabel();
        tfEscarapelaDocumento = new javax.swing.JTextField();
        lbIDEscarapela = new javax.swing.JLabel();
        tfEscarapelaNombre = new javax.swing.JTextField();
        lbEventoEscarapela = new javax.swing.JLabel();
        tfEscarapelaTelefono = new javax.swing.JTextField();
        lbLugarEscarapela = new javax.swing.JLabel();
        tfEscarapelaEmail = new javax.swing.JTextField();
        btnAceptarEscarapela = new javax.swing.JButton();
        PanelVisorEscarapela = new javax.swing.JPanel();
        PanelReportes = new javax.swing.JPanel();
        PanelVisorReportes = new javax.swing.JPanel();
        jPanel17 = new javax.swing.JPanel();
        btGenerarReporte = new javax.swing.JButton();
        jcbListaReportes = new javax.swing.JComboBox();
        jLabel1 = new javax.swing.JLabel();
        PanelUsuarios = new javax.swing.JPanel();
        jScrollPane7 = new javax.swing.JScrollPane();
        tablaUsuarios = new javax.swing.JTable();
        btnNuevo = new javax.swing.JButton();
        btnEditarUsuario = new javax.swing.JButton();
        btnEliminarUsuario = new javax.swing.JButton();
        btnHabilitarUsuario = new javax.swing.JButton();
        PanelOpciones = new javax.swing.JPanel();
        btnCerrarSesion = new javax.swing.JButton();
        btnSalir = new javax.swing.JButton();
        lbUsuario = new javax.swing.JLabel();

        dialogEvento.setBounds(new java.awt.Rectangle(200, 200, 250, 300));
        dialogEvento.setModal(true);
        dialogEvento.setResizable(false);

        dbtnCancelarEvento.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/24.png"))); // NOI18N
        dbtnCancelarEvento.setText("Cancelar");
        dbtnCancelarEvento.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                dbtnCancelarEventoActionPerformed(evt);
            }
        });

        dbtnEditarEvento.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/18.png"))); // NOI18N
        dbtnEditarEvento.setText("Editar");

        dbtnCrearEvento.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/17.png"))); // NOI18N
        dbtnCrearEvento.setText("Nuevo");
        dbtnCrearEvento.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                dbtnCrearEventoActionPerformed(evt);
            }
        });

        dlbNombreEvento.setText("Nombre del Evento");

        dlbTipoEvento.setText("Tipo de Evento");

        dlbCupoEvento.setText("Cupo Total");

        dlbFechaInicioEvento.setText("Fecha Inicio");

        dlbFechaFinalEvento.setText("Fecha Final");

        dlbExpositorEvento.setText("Expositor");

        dlbPagoExpositor.setText("Pago Expositor");

        dlbLugarEvento.setText("Lugar del Evento");

        dlbTemaEvento.setText("Tema del Evento");

        dlbPrecioEvento.setText("Precio por persona");

        comboTipoEvento.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Seleccione", "Curso", "Conferencia" }));

        dateFechaInicioEvento.setDateFormatString("yyyy/MM/dd");

        dateFechaFinalEvento.setDateFormatString("yyyy/MM/dd");

        comboExpositorEvento.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        comboLugarEvento.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        dlbMaterialEvento.setText("Material");

        comboMaterialEvento.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        dlbHoraInicioEvento.setText("Hora Inicio");

        dlbHoraFinalEvento.setText("Hora Final");

        spinHoraInicioEvento.setMaximum(23);
        spinHoraInicioEvento.setMinimum(0);

        spinMinutoInicioEvento.setMaximum(5);
        spinMinutoInicioEvento.setMinimum(0);

        spinMinutoInicio2Evento.setMaximum(9);
        spinMinutoInicio2Evento.setMinimum(0);

        spinHoraFinalEvento.setMaximum(23);
        spinHoraFinalEvento.setMinimum(0);

        spinMinutoFinalEvento.setMaximum(5);
        spinMinutoFinalEvento.setMinimum(0);

        spinMinutoFinal2Evento.setMaximum(9);
        spinMinutoFinal2Evento.setMinimum(0);

        dialogEvento.setLocationRelativeTo(PanelEvento);

        javax.swing.GroupLayout dialogEventoLayout = new javax.swing.GroupLayout(dialogEvento.getContentPane());
        dialogEvento.getContentPane().setLayout(dialogEventoLayout);
        dialogEventoLayout.setHorizontalGroup(
            dialogEventoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(dialogEventoLayout.createSequentialGroup()
                .addGap(47, 47, 47)
                .addGroup(dialogEventoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(dialogEventoLayout.createSequentialGroup()
                        .addGroup(dialogEventoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(dialogEventoLayout.createSequentialGroup()
                                .addComponent(dbtnCrearEvento, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(dbtnEditarEvento, javax.swing.GroupLayout.DEFAULT_SIZE, 160, Short.MAX_VALUE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(dbtnCancelarEvento, javax.swing.GroupLayout.PREFERRED_SIZE, 115, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(dialogEventoLayout.createSequentialGroup()
                                .addGroup(dialogEventoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                    .addComponent(dlbTipoEvento, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(dlbMaterialEvento, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(dlbNombreEvento, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(dlbTemaEvento, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(dlbPrecioEvento, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(dlbExpositorEvento, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(dlbPagoExpositor, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(dlbLugarEvento, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(dialogEventoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(dtfTemaEvento)
                                    .addComponent(comboExpositorEvento, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(dtfPagoExpositorEvento)
                                    .addComponent(comboLugarEvento, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(dtfPrecioEvento)
                                    .addComponent(comboMaterialEvento, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addGroup(dialogEventoLayout.createSequentialGroup()
                                        .addGroup(dialogEventoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addGroup(dialogEventoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                                .addComponent(dtfNombreEvento)
                                                .addComponent(comboTipoEvento, 0, 250, Short.MAX_VALUE))
                                            .addComponent(dtfCupoEvento, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addGroup(dialogEventoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                                .addComponent(dateFechaFinalEvento, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                                .addComponent(dateFechaInicioEvento, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)))
                                        .addGap(0, 0, Short.MAX_VALUE)))))
                        .addGap(38, 38, 38))
                    .addGroup(dialogEventoLayout.createSequentialGroup()
                        .addGroup(dialogEventoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(dialogEventoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                .addComponent(dlbCupoEvento, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(dlbFechaInicioEvento, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(dlbFechaFinalEvento, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                            .addGroup(dialogEventoLayout.createSequentialGroup()
                                .addGroup(dialogEventoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(dialogEventoLayout.createSequentialGroup()
                                        .addComponent(dlbHoraInicioEvento, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(spinHoraInicioEvento, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGroup(dialogEventoLayout.createSequentialGroup()
                                        .addComponent(dlbHoraFinalEvento, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(spinHoraFinalEvento, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE)))
                                .addGap(10, 10, 10)
                                .addGroup(dialogEventoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(dialogEventoLayout.createSequentialGroup()
                                        .addComponent(spinMinutoFinalEvento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(spinMinutoFinal2Evento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGroup(dialogEventoLayout.createSequentialGroup()
                                        .addComponent(spinMinutoInicioEvento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(spinMinutoInicio2Evento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
        );
        dialogEventoLayout.setVerticalGroup(
            dialogEventoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(dialogEventoLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(dialogEventoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(dlbNombreEvento)
                    .addComponent(dtfNombreEvento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGroup(dialogEventoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(dialogEventoLayout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGroup(dialogEventoLayout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(dialogEventoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(dlbTipoEvento)
                            .addComponent(comboTipoEvento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(dialogEventoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(dlbCupoEvento)
                            .addComponent(dtfCupoEvento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(dialogEventoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(dlbFechaInicioEvento)
                            .addComponent(dateFechaInicioEvento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(dialogEventoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(dlbFechaFinalEvento)
                            .addComponent(dateFechaFinalEvento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(dialogEventoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(dlbHoraInicioEvento)
                            .addComponent(spinHoraInicioEvento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(spinMinutoInicioEvento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(spinMinutoInicio2Evento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(dialogEventoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(dlbHoraFinalEvento)
                            .addComponent(spinHoraFinalEvento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(spinMinutoFinalEvento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(spinMinutoFinal2Evento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                .addGroup(dialogEventoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(dlbTemaEvento)
                    .addComponent(dtfTemaEvento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(dialogEventoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(dlbPrecioEvento)
                    .addComponent(dtfPrecioEvento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(dialogEventoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(dlbExpositorEvento)
                    .addComponent(comboExpositorEvento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(dialogEventoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(dlbPagoExpositor)
                    .addComponent(dtfPagoExpositorEvento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(dialogEventoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(dlbLugarEvento)
                    .addComponent(comboLugarEvento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(dialogEventoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(dlbMaterialEvento)
                    .addComponent(comboMaterialEvento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(9, 9, 9)
                .addGroup(dialogEventoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(dbtnCrearEvento)
                    .addComponent(dbtnEditarEvento)
                    .addComponent(dbtnCancelarEvento))
                .addContainerGap(33, Short.MAX_VALUE))
        );

        dialogAsistente.setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        dialogAsistente.setAlwaysOnTop(true);
        dialogAsistente.setBounds(new java.awt.Rectangle(200, 200, 300, 350));
        dialogAsistente.setModal(true);
        dialogAsistente.setResizable(false);

        jPanel2.setLayout(new java.awt.GridLayout(7, 2));

        dbtnCrearAsistente.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/12.png"))); // NOI18N
        dbtnCrearAsistente.setText("Crear");
        dbtnCrearAsistente.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                dbtnCrearAsistenteActionPerformed(evt);
            }
        });
        jPanel7.add(dbtnCrearAsistente);

        dbtnEditarAsistente.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/13.png"))); // NOI18N
        dbtnEditarAsistente.setText("Editar");
        dbtnEditarAsistente.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                dbtnEditarAsistenteActionPerformed(evt);
            }
        });
        jPanel7.add(dbtnEditarAsistente);

        dbtnCancelarAsistente.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/24.png"))); // NOI18N
        dbtnCancelarAsistente.setText("Cancelar");
        dbtnCancelarAsistente.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                dbtnCancelarAsistenteActionPerformed(evt);
            }
        });
        jPanel7.add(dbtnCancelarAsistente);

        dlbCedulaAsistente.setText("Cedula");

        dlbNombreAsistente.setText("Nombre");

        dlbApellidoAsistente.setText("Apellido");

        dlbTelefonoAsistente.setText("Telefono");

        dlbDireccionAsistente.setText("Direccion");

        dlbEmailAsistente.setText("E-mail");

        dlbFechaAsistente.setText("Fecha");

        dtfFechaAsistente.setDateFormatString("yyyy-MM-dd");

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addGap(28, 28, 28)
                                .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, 214, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addGap(47, 47, 47)
                                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addGroup(jPanel1Layout.createSequentialGroup()
                                        .addComponent(dlbCedulaAsistente, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(dtfCedulaAsistente, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGroup(jPanel1Layout.createSequentialGroup()
                                        .addComponent(dlbNombreAsistente, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(dtfNombreAsistente, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGroup(jPanel1Layout.createSequentialGroup()
                                        .addComponent(dlbApellidoAsistente, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(dtfApellidoAsistente, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGroup(jPanel1Layout.createSequentialGroup()
                                        .addComponent(dlbTelefonoAsistente, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(dtfTelefonoAsistente))
                                    .addGroup(jPanel1Layout.createSequentialGroup()
                                        .addComponent(dlbDireccionAsistente, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(dtfDireccionAsistente, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGroup(jPanel1Layout.createSequentialGroup()
                                        .addComponent(dlbFechaAsistente, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(dtfFechaAsistente, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                                    .addGroup(jPanel1Layout.createSequentialGroup()
                                        .addComponent(dlbEmailAsistente, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(dtfEmailAsistente, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)))))
                        .addGap(0, 34, Short.MAX_VALUE))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                        .addGap(0, 0, Short.MAX_VALUE)
                        .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGap(7, 7, 7)
                .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(dlbCedulaAsistente, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(dtfCedulaAsistente, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(dlbNombreAsistente, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(dtfNombreAsistente, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(dlbApellidoAsistente, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(dtfApellidoAsistente, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(dlbTelefonoAsistente, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(dtfTelefonoAsistente, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(dlbDireccionAsistente, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(dtfDireccionAsistente, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(dlbEmailAsistente, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(dtfEmailAsistente, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(dlbFechaAsistente, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(dtfFechaAsistente, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 21, Short.MAX_VALUE)
                .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );

        dialogAsistente.setLocationRelativeTo(panelAsistente);

        javax.swing.GroupLayout dialogAsistenteLayout = new javax.swing.GroupLayout(dialogAsistente.getContentPane());
        dialogAsistente.getContentPane().setLayout(dialogAsistenteLayout);
        dialogAsistenteLayout.setHorizontalGroup(
            dialogAsistenteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
        );
        dialogAsistenteLayout.setVerticalGroup(
            dialogAsistenteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(dialogAsistenteLayout.createSequentialGroup()
                .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );

        dialogExpositor.setBounds(new java.awt.Rectangle(200, 200, 300, 380));
        dialogExpositor.setModal(true);
        dialogExpositor.setResizable(false);

        jPanel5.setLayout(new java.awt.GridLayout(9, 2));

        dlbCedulaExpositor1.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        dlbCedulaExpositor1.setText("Cedula");
        jPanel5.add(dlbCedulaExpositor1);

        dtfCedulaExpositor.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                dtfCedulaExpositorActionPerformed(evt);
            }
        });
        jPanel5.add(dtfCedulaExpositor);

        dlbNombreExpositor.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        dlbNombreExpositor.setText("Nombre");
        jPanel5.add(dlbNombreExpositor);
        jPanel5.add(dtfNombreExpositor);

        dlbApellidoExpositor.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        dlbApellidoExpositor.setText("Apellido");
        jPanel5.add(dlbApellidoExpositor);
        jPanel5.add(dtfApellidoExpositor);

        dlbTituloExpositor.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        dlbTituloExpositor.setText("Titulo");
        jPanel5.add(dlbTituloExpositor);
        jPanel5.add(dtfTituloExpositor);

        dlbEmailExpositor.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        dlbEmailExpositor.setText("E-mail");
        jPanel5.add(dlbEmailExpositor);
        jPanel5.add(dtfEmailExpositor);

        dlbTelefonoExpositor.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        dlbTelefonoExpositor.setText("Telefono");
        jPanel5.add(dlbTelefonoExpositor);
        jPanel5.add(dtfTelefonoExpositor);

        dlbDireccionExpositor.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        dlbDireccionExpositor.setText("Dirreccion");
        jPanel5.add(dlbDireccionExpositor);
        jPanel5.add(dtfDireccionExpositor);

        dlbPerfilExpositor.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        dlbPerfilExpositor.setText("Perfil");
        jPanel5.add(dlbPerfilExpositor);
        jPanel5.add(dtfPerfilExpositor);

        dbtnCrearExpositor.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/12.png"))); // NOI18N
        dbtnCrearExpositor.setText("Crear");
        dbtnCrearExpositor.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                dbtnCrearExpositorActionPerformed(evt);
            }
        });
        jPanel6.add(dbtnCrearExpositor);

        dbtnEditarExpositor.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/13.png"))); // NOI18N
        dbtnEditarExpositor.setText("Editar");
        dbtnEditarExpositor.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                dbtnEditarExpositorActionPerformed(evt);
            }
        });
        jPanel6.add(dbtnEditarExpositor);

        dbtnCancelarExpositor.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/24.png"))); // NOI18N
        dbtnCancelarExpositor.setText("Cancelar");
        dbtnCancelarExpositor.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                dbtnCancelarExpositorActionPerformed(evt);
            }
        });
        jPanel6.add(dbtnCancelarExpositor);

        dialogExpositor.setLocationRelativeTo(PanelExpositor);

        javax.swing.GroupLayout dialogExpositorLayout = new javax.swing.GroupLayout(dialogExpositor.getContentPane());
        dialogExpositor.getContentPane().setLayout(dialogExpositorLayout);
        dialogExpositorLayout.setHorizontalGroup(
            dialogExpositorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(dialogExpositorLayout.createSequentialGroup()
                .addGap(31, 31, 31)
                .addGroup(dialogExpositorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jPanel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        dialogExpositorLayout.setVerticalGroup(
            dialogExpositorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(dialogExpositorLayout.createSequentialGroup()
                .addGap(22, 22, 22)
                .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        dialogMaterial.setBounds(new java.awt.Rectangle(200, 200, 300, 300));
        dialogMaterial.setModal(true);
        dialogMaterial.setResizable(false);

        dlbDescripcionMaterial.setText("Descripcion");

        dlbCostoMaterial.setText("Costo");

        dlbNombreMaterial.setText("Nombre");

        dbtnCancelarMaterial.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/24.png"))); // NOI18N
        dbtnCancelarMaterial.setText("Cancelar");
        dbtnCancelarMaterial.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                dbtnCancelarMaterialActionPerformed(evt);
            }
        });

        dbtnEditarMaterial.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/23.png"))); // NOI18N
        dbtnEditarMaterial.setText("Editar");
        dbtnEditarMaterial.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                dbtnEditarMaterialActionPerformed(evt);
            }
        });

        dbtnCrearMaterial.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/22.png"))); // NOI18N
        dbtnCrearMaterial.setText("Crear");
        dbtnCrearMaterial.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                dbtnCrearMaterialActionPerformed(evt);
            }
        });

        dialogMaterial.setLocationRelativeTo(PanelMaterial);

        javax.swing.GroupLayout dialogMaterialLayout = new javax.swing.GroupLayout(dialogMaterial.getContentPane());
        dialogMaterial.getContentPane().setLayout(dialogMaterialLayout);
        dialogMaterialLayout.setHorizontalGroup(
            dialogMaterialLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, dialogMaterialLayout.createSequentialGroup()
                .addContainerGap(22, Short.MAX_VALUE)
                .addGroup(dialogMaterialLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(dialogMaterialLayout.createSequentialGroup()
                        .addComponent(dlbDescripcionMaterial, javax.swing.GroupLayout.PREFERRED_SIZE, 97, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(dtfDescripcionMaterial, javax.swing.GroupLayout.PREFERRED_SIZE, 206, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(dialogMaterialLayout.createSequentialGroup()
                        .addComponent(dlbCostoMaterial, javax.swing.GroupLayout.PREFERRED_SIZE, 97, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(dtfCostoMaterial, javax.swing.GroupLayout.PREFERRED_SIZE, 206, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(dialogMaterialLayout.createSequentialGroup()
                        .addComponent(dlbNombreMaterial, javax.swing.GroupLayout.PREFERRED_SIZE, 97, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(dtfNombreMaterial, javax.swing.GroupLayout.PREFERRED_SIZE, 206, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(dialogMaterialLayout.createSequentialGroup()
                        .addComponent(dbtnCrearMaterial)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(dbtnEditarMaterial)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(dbtnCancelarMaterial, javax.swing.GroupLayout.PREFERRED_SIZE, 117, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jPanel10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );
        dialogMaterialLayout.setVerticalGroup(
            dialogMaterialLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(dialogMaterialLayout.createSequentialGroup()
                .addGap(21, 21, 21)
                .addGroup(dialogMaterialLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(dlbNombreMaterial)
                    .addComponent(dtfNombreMaterial, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(dialogMaterialLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(dlbCostoMaterial, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(dtfCostoMaterial, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(dialogMaterialLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(dlbDescripcionMaterial, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(dtfDescripcionMaterial, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 14, Short.MAX_VALUE)
                .addGroup(dialogMaterialLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanel10, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, dialogMaterialLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(dbtnCancelarMaterial, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGroup(dialogMaterialLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(dbtnCrearMaterial)
                            .addComponent(dbtnEditarMaterial))))
                .addContainerGap(51, Short.MAX_VALUE))
        );

        dialogLogin.setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
        dialogLogin.setBounds(new java.awt.Rectangle(200, 200, 500, 550));
        dialogLogin.setModal(true);
        dialogLogin.setResizable(false);
        dialogLogin.addWindowListener(new java.awt.event.WindowAdapter() {
            public void windowClosing(java.awt.event.WindowEvent evt) {
                dialogLoginWindowClosing(evt);
            }
        });

        lbAcceder.setFont(new java.awt.Font("Ubuntu", 0, 24)); // NOI18N
        lbAcceder.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        lbAcceder.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/login.png"))); // NOI18N
        lbAcceder.setText("Ingresar");

        lbUsuario1.setText("Usuario");

        lbContraseña.setText("Contraseña");

        tfUsuario.setText("123");

        tfContraseña.setText("123");

        javax.swing.GroupLayout jPanel12Layout = new javax.swing.GroupLayout(jPanel12);
        jPanel12.setLayout(jPanel12Layout);
        jPanel12Layout.setHorizontalGroup(
            jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel12Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(lbAcceder, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(jPanel12Layout.createSequentialGroup()
                        .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(lbContraseña, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(lbUsuario1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(tfUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, 132, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(tfContraseña, javax.swing.GroupLayout.PREFERRED_SIZE, 132, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addContainerGap(20, Short.MAX_VALUE))
        );
        jPanel12Layout.setVerticalGroup(
            jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel12Layout.createSequentialGroup()
                .addGap(6, 6, 6)
                .addComponent(lbAcceder, javax.swing.GroupLayout.PREFERRED_SIZE, 57, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lbUsuario1)
                    .addComponent(tfUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(14, 14, 14)
                .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lbContraseña)
                    .addComponent(tfContraseña, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        brnCancelar.setText("Cancelar");
        brnCancelar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                brnCancelarActionPerformed(evt);
            }
        });

        btnIngresar.setText("Ingresar");
        btnIngresar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnIngresarActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel13Layout = new javax.swing.GroupLayout(jPanel13);
        jPanel13.setLayout(jPanel13Layout);
        jPanel13Layout.setHorizontalGroup(
            jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel13Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(btnIngresar)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(brnCancelar)
                .addGap(28, 28, 28))
        );
        jPanel13Layout.setVerticalGroup(
            jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel13Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(brnCancelar)
                    .addComponent(btnIngresar))
                .addContainerGap())
        );

        dialogLogin.setLocationRelativeTo(null);

        javax.swing.GroupLayout dialogLoginLayout = new javax.swing.GroupLayout(dialogLogin.getContentPane());
        dialogLogin.getContentPane().setLayout(dialogLoginLayout);
        dialogLoginLayout.setHorizontalGroup(
            dialogLoginLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(dialogLoginLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(dialogLoginLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanel13, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jPanel12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        dialogLoginLayout.setVerticalGroup(
            dialogLoginLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(dialogLoginLayout.createSequentialGroup()
                .addComponent(jPanel12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel13, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
        );

        dialogPago.setBounds(new java.awt.Rectangle(200, 200, 300, 330));
        dialogPago.setModal(true);
        dialogPago.setResizable(false);

        jPanel15.setLayout(new java.awt.GridLayout(6, 2));

        dlbTipoClientePago.setText("Tipo de cliente");
        jPanel15.add(dlbTipoClientePago);

        dtfTipoClientePago.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Seleccionar", "Asistente", "Expositor" }));
        jPanel15.add(dtfTipoClientePago);

        dlbClientePago.setText("Cliente");
        jPanel15.add(dlbClientePago);

        dtfClientePago.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
        jPanel15.add(dtfClientePago);

        dlbValorPago.setText("Valor");
        jPanel15.add(dlbValorPago);
        jPanel15.add(dtfValorPago);

        dlbFechaPago.setText("Fecha");
        jPanel15.add(dlbFechaPago);

        dtfFechaPago.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.DateFormatter()));
        jPanel15.add(dtfFechaPago);

        dlbTipoPago.setText("Tipo de Pago");
        jPanel15.add(dlbTipoPago);

        dtfTipoPago.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Seleccionar", "Efectivo", "Tarjeta" }));
        jPanel15.add(dtfTipoPago);

        dlbEventoPago.setText("Evento");
        jPanel15.add(dlbEventoPago);

        dtfEventoPago.setEnabled(false);
        jPanel15.add(dtfEventoPago);

        dbtnPagar.setText("Pagar");
        dbtnPagar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                dbtnPagarActionPerformed(evt);
            }
        });
        jPanel16.add(dbtnPagar);

        dbtnCancelarPago.setText("Cancelar");
        dbtnCancelarPago.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                dbtnCancelarPagoActionPerformed(evt);
            }
        });
        jPanel16.add(dbtnCancelarPago);

        javax.swing.GroupLayout jPanel14Layout = new javax.swing.GroupLayout(jPanel14);
        jPanel14.setLayout(jPanel14Layout);
        jPanel14Layout.setHorizontalGroup(
            jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel14Layout.createSequentialGroup()
                .addGap(0, 21, Short.MAX_VALUE)
                .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel14Layout.createSequentialGroup()
                        .addComponent(jPanel16, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(74, 74, 74))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel14Layout.createSequentialGroup()
                        .addComponent(jPanel15, javax.swing.GroupLayout.PREFERRED_SIZE, 263, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addContainerGap())))
        );
        jPanel14Layout.setVerticalGroup(
            jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel14Layout.createSequentialGroup()
                .addGap(22, 22, 22)
                .addComponent(jPanel15, javax.swing.GroupLayout.PREFERRED_SIZE, 180, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(39, 39, 39)
                .addComponent(jPanel16, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(90, Short.MAX_VALUE))
        );

        dialogPago.setLocationRelativeTo(PanelPago);

        javax.swing.GroupLayout dialogPagoLayout = new javax.swing.GroupLayout(dialogPago.getContentPane());
        dialogPago.getContentPane().setLayout(dialogPagoLayout);
        dialogPagoLayout.setHorizontalGroup(
            dialogPagoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel14, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
        );
        dialogPagoLayout.setVerticalGroup(
            dialogPagoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel14, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
        );

        dialogUsuario.setModal(true);

        dbtnCrearUsuario.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/12.png"))); // NOI18N
        dbtnCrearUsuario.setText("Crear");
        dbtnCrearUsuario.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                dbtnCrearUsuarioActionPerformed(evt);
            }
        });

        dbtnEditarUsuario.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/13.png"))); // NOI18N
        dbtnEditarUsuario.setText("Editar");
        dbtnEditarUsuario.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                dbtnEditarUsuarioActionPerformed(evt);
            }
        });

        dbtnCancelarUsuario.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/24.png"))); // NOI18N
        dbtnCancelarUsuario.setText("Cancelar");
        dbtnCancelarUsuario.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                dbtnCancelarUsuarioActionPerformed(evt);
            }
        });

        jLabel2.setText("Documento:");

        jLabel3.setText("Clave:");

        jLabel4.setText("Nombre:");

        jLabel5.setText("Apellido:");

        jLabel6.setText("Dirección:");

        jLabel7.setText("Teléfono:");

        jLabel8.setText("Tipo:");

        tfTipoUsuario.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Seleccione", "Administrador", "Operador" }));

        jLabel9.setText("Cargo:");

        dialogUsuario.setLocationRelativeTo(PanelUsuarios);

        javax.swing.GroupLayout dialogUsuarioLayout = new javax.swing.GroupLayout(dialogUsuario.getContentPane());
        dialogUsuario.getContentPane().setLayout(dialogUsuarioLayout);
        dialogUsuarioLayout.setHorizontalGroup(
            dialogUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(dialogUsuarioLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(dialogUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, 91, Short.MAX_VALUE)
                    .addComponent(jLabel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jLabel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jLabel8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jLabel9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(dbtnCrearUsuario, javax.swing.GroupLayout.DEFAULT_SIZE, 91, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(dialogUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(tfDocumentoUsuario)
                    .addComponent(tfClaveUsuario)
                    .addComponent(tfNombreUsuario)
                    .addComponent(tfApellidoUsuario)
                    .addComponent(tfDireccionUsuario)
                    .addComponent(tfTelefonoUsuario)
                    .addComponent(tfTipoUsuario, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(tfCargoUsuario)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, dialogUsuarioLayout.createSequentialGroup()
                        .addGap(0, 2, Short.MAX_VALUE)
                        .addComponent(dbtnEditarUsuario)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(dbtnCancelarUsuario)))
                .addContainerGap())
        );
        dialogUsuarioLayout.setVerticalGroup(
            dialogUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, dialogUsuarioLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(dialogUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel2)
                    .addComponent(tfDocumentoUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(dialogUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel3)
                    .addComponent(tfClaveUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(dialogUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel4)
                    .addComponent(tfNombreUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(dialogUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel5)
                    .addComponent(tfApellidoUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(dialogUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel6)
                    .addComponent(tfDireccionUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(dialogUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel7)
                    .addComponent(tfTelefonoUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(dialogUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel8)
                    .addComponent(tfTipoUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(dialogUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel9)
                    .addComponent(tfCargoUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(dialogUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(dbtnCrearUsuario)
                    .addComponent(dbtnEditarUsuario)
                    .addComponent(dbtnCancelarUsuario))
                .addContainerGap(42, Short.MAX_VALUE))
        );

        dialogLugar.setBounds(new java.awt.Rectangle(200, 200, 300, 300));
        dialogLugar.setModal(true);
        dialogLugar.setResizable(false);

        dlbDescripcionLugar.setText("Descripcion");

        dlbCapacidadLugar.setText("Capacidad");

        dlbNombreLugar.setText("Nombre");

        dbtnCancelarLugar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/24.png"))); // NOI18N
        dbtnCancelarLugar.setText("Cancelar");
        dbtnCancelarLugar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                dbtnCancelarLugarActionPerformed(evt);
            }
        });

        dbtnEditarLugar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/23.png"))); // NOI18N
        dbtnEditarLugar.setText("Editar");
        dbtnEditarLugar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                dbtnEditarLugarActionPerformed(evt);
            }
        });

        dbtnCrearLugar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/22.png"))); // NOI18N
        dbtnCrearLugar.setText("nuevo");
        dbtnCrearLugar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                dbtnCrearLugarActionPerformed(evt);
            }
        });

        dialogMaterial.setLocationRelativeTo(PanelMaterial);

        javax.swing.GroupLayout dialogLugarLayout = new javax.swing.GroupLayout(dialogLugar.getContentPane());
        dialogLugar.getContentPane().setLayout(dialogLugarLayout);
        dialogLugarLayout.setHorizontalGroup(
            dialogLugarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, dialogLugarLayout.createSequentialGroup()
                .addContainerGap(20, Short.MAX_VALUE)
                .addGroup(dialogLugarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(dialogLugarLayout.createSequentialGroup()
                        .addComponent(dlbDescripcionLugar, javax.swing.GroupLayout.PREFERRED_SIZE, 97, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(dtfDescripcionLugar, javax.swing.GroupLayout.PREFERRED_SIZE, 206, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(dialogLugarLayout.createSequentialGroup()
                        .addComponent(dlbCapacidadLugar, javax.swing.GroupLayout.PREFERRED_SIZE, 97, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(dtfCapacidadLugar, javax.swing.GroupLayout.PREFERRED_SIZE, 206, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(dialogLugarLayout.createSequentialGroup()
                        .addComponent(dlbNombreLugar, javax.swing.GroupLayout.PREFERRED_SIZE, 97, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(dtfNombreLugar, javax.swing.GroupLayout.PREFERRED_SIZE, 206, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(dialogLugarLayout.createSequentialGroup()
                        .addComponent(dbtnCrearLugar)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(dbtnEditarLugar)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(dbtnCancelarLugar, javax.swing.GroupLayout.PREFERRED_SIZE, 117, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jPanel11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );
        dialogLugarLayout.setVerticalGroup(
            dialogLugarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(dialogLugarLayout.createSequentialGroup()
                .addGap(21, 21, 21)
                .addGroup(dialogLugarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(dlbNombreLugar)
                    .addComponent(dtfNombreLugar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(dialogLugarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(dlbCapacidadLugar, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(dtfCapacidadLugar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(dialogLugarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(dlbDescripcionLugar, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(dtfDescripcionLugar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 14, Short.MAX_VALUE)
                .addGroup(dialogLugarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanel11, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, dialogLugarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(dbtnCancelarLugar, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGroup(dialogLugarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(dbtnCrearLugar)
                            .addComponent(dbtnEditarLugar))))
                .addContainerGap(51, Short.MAX_VALUE))
        );

        btnEditarEvento.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/18.png"))); // NOI18N
        btnEditarEvento.setText("Editar");
        btnEditarEvento.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnEditarEventoActionPerformed(evt);
            }
        });

        btnVerMaterialesEvento.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/21.png"))); // NOI18N
        btnVerMaterialesEvento.setText("Ver Materiales");
        btnVerMaterialesEvento.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnVerMaterialesEventoActionPerformed(evt);
            }
        });

        btnVerAsistentesEvento.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/20.png"))); // NOI18N
        btnVerAsistentesEvento.setText("Ver Asistentes");
        btnVerAsistentesEvento.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnVerAsistentesEventoActionPerformed(evt);
            }
        });

        lbParticipanteEscarapela.setText("Evento:");

        slParticipanteEscarapela.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Seleccionar", "Asistente", "Expositor" }));

        dialogMatricula.setModal(true);

        jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/24.png"))); // NOI18N
        jButton1.setText("Cancelar");
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
            }
        });

        jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/25.png"))); // NOI18N
        jButton2.setText("Aceptar");
        jButton2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton2ActionPerformed(evt);
            }
        });

        jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder("Información de Pago"));

        jLabel12.setText("Valor:");

        jcbMatriculaTipoPago.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Seleccione", "Efectivo", "Tarjeta" }));

        jLabel13.setText("Tipo:");

        jLabel14.setText("Observación:");

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addComponent(jLabel14)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(tfMatriculaObservacionPago))
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel13)
                            .addComponent(jLabel12))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(tfMatriculaValorPago)
                            .addComponent(jcbMatriculaTipoPago, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
                .addContainerGap())
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel12)
                    .addComponent(tfMatriculaValorPago, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel13)
                    .addComponent(jcbMatriculaTipoPago, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel14)
                    .addComponent(tfMatriculaObservacionPago, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(16, Short.MAX_VALUE))
        );

        jPanel8.setBorder(javax.swing.BorderFactory.createTitledBorder("Información del Evento"));

        jLabel11.setText("Costo:");

        jcbMatriculaEvento.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        jLabel10.setText("Evento:");

        javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8);
        jPanel8.setLayout(jPanel8Layout);
        jPanel8Layout.setHorizontalGroup(
            jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel8Layout.createSequentialGroup()
                .addGap(7, 7, 7)
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel11)
                    .addComponent(jLabel10))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(tfMatriculaCosto)
                    .addComponent(jcbMatriculaEvento, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
        );
        jPanel8Layout.setVerticalGroup(
            jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel8Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel10)
                    .addComponent(jcbMatriculaEvento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel11)
                    .addComponent(tfMatriculaCosto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(13, Short.MAX_VALUE))
        );

        dialogMatricula.setLocationRelativeTo(this);

        javax.swing.GroupLayout dialogMatriculaLayout = new javax.swing.GroupLayout(dialogMatricula.getContentPane());
        dialogMatricula.getContentPane().setLayout(dialogMatriculaLayout);
        dialogMatriculaLayout.setHorizontalGroup(
            dialogMatriculaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(dialogMatriculaLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(dialogMatriculaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, dialogMatriculaLayout.createSequentialGroup()
                        .addGap(0, 112, Short.MAX_VALUE)
                        .addComponent(jButton2)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jButton1))
                    .addComponent(jPanel3, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanel8, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
        );
        dialogMatriculaLayout.setVerticalGroup(
            dialogMatriculaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, dialogMatriculaLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 12, Short.MAX_VALUE)
                .addGroup(dialogMatriculaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButton1)
                    .addComponent(jButton2))
                .addContainerGap())
        );

        setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
        setTitle("Sistema de Gestión de Eventos | SGE");
        setBackground(new java.awt.Color(255, 255, 255));
        setResizable(false);
        addWindowListener(new java.awt.event.WindowAdapter() {
            public void windowClosing(java.awt.event.WindowEvent evt) {
                formWindowClosing(evt);
            }
        });

        PanelPrincipal.setOpaque(false);

        panelSeleccion.setTabPlacement(javax.swing.JTabbedPane.LEFT);
        panelSeleccion.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                panelSeleccionMouseClicked(evt);
            }
        });
        panelSeleccion.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                panelSeleccionFocusGained(evt);
            }
        });

        PanelInicio.setOpaque(false);
        PanelInicio.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                PanelInicioFocusGained(evt);
            }
        });

        lblUsuarioInicio.setFont(new java.awt.Font("Trebuchet MS", 1, 36)); // NOI18N
        lblUsuarioInicio.setForeground(new java.awt.Color(255, 255, 51));
        lblUsuarioInicio.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        lblUsuarioInicio.setToolTipText("");
        lblUsuarioInicio.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);

        lblBienvenido.setFont(new java.awt.Font("Trebuchet MS", 1, 36)); // NOI18N
        lblBienvenido.setForeground(new java.awt.Color(255, 0, 0));
        lblBienvenido.setText("Bienvenido:");
        lblBienvenido.setToolTipText("");
        lblBienvenido.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);

        javax.swing.GroupLayout PanelInicioLayout = new javax.swing.GroupLayout(PanelInicio);
        PanelInicio.setLayout(PanelInicioLayout);
        PanelInicioLayout.setHorizontalGroup(
            PanelInicioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, PanelInicioLayout.createSequentialGroup()
                .addContainerGap(182, Short.MAX_VALUE)
                .addGroup(PanelInicioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblUsuarioInicio, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 531, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblBienvenido, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 616, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );
        PanelInicioLayout.setVerticalGroup(
            PanelInicioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PanelInicioLayout.createSequentialGroup()
                .addGap(19, 19, 19)
                .addComponent(lblBienvenido, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(lblUsuarioInicio, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(422, Short.MAX_VALUE))
        );

        panelSeleccion.addTab("Inicio", new javax.swing.ImageIcon(getClass().getResource("/imagenes/1.png")), PanelInicio); // NOI18N

        tablaExpositor.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "ID", "Cedula", "Nombre", "Apellido", "E-mail", "Telefono", "Direccion", "Titulo", "Perfil", "Estado"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false, false, false, false, false, false, false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        tablaExpositor.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
        jScrollPane3.setViewportView(tablaExpositor);

        btnNuevoExpositor.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/12.png"))); // NOI18N
        btnNuevoExpositor.setText("Nuevo");
        btnNuevoExpositor.setSelectedIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/12.png"))); // NOI18N
        btnNuevoExpositor.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnNuevoExpositorActionPerformed(evt);
            }
        });

        btnEditarExpositor.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/13.png"))); // NOI18N
        btnEditarExpositor.setText("Editar");
        btnEditarExpositor.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnEditarExpositorActionPerformed(evt);
            }
        });

        btnEliminarExpositor.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/14.png"))); // NOI18N
        btnEliminarExpositor.setText("Inhabilitar");
        btnEliminarExpositor.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnEliminarExpositorActionPerformed(evt);
            }
        });

        btnActivarExpositor.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/15.png"))); // NOI18N
        btnActivarExpositor.setText("Habilitar");
        btnActivarExpositor.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnActivarExpositorActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout PanelExpositorLayout = new javax.swing.GroupLayout(PanelExpositor);
        PanelExpositor.setLayout(PanelExpositorLayout);
        PanelExpositorLayout.setHorizontalGroup(
            PanelExpositorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PanelExpositorLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(PanelExpositorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 735, Short.MAX_VALUE)
                    .addGroup(PanelExpositorLayout.createSequentialGroup()
                        .addComponent(btnNuevoExpositor, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnEditarExpositor, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnActivarExpositor, javax.swing.GroupLayout.PREFERRED_SIZE, 111, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnEliminarExpositor, javax.swing.GroupLayout.PREFERRED_SIZE, 115, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(0, 330, Short.MAX_VALUE)))
                .addContainerGap())
        );
        PanelExpositorLayout.setVerticalGroup(
            PanelExpositorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PanelExpositorLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 472, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(PanelExpositorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnNuevoExpositor)
                    .addComponent(btnEditarExpositor)
                    .addComponent(btnEliminarExpositor)
                    .addComponent(btnActivarExpositor))
                .addContainerGap())
        );

        panelSeleccion.addTab("Expositor", new javax.swing.ImageIcon(getClass().getResource("/imagenes/2.png")), PanelExpositor); // NOI18N

        tablaAsistente.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "ID", "DocID", "Nombre", "Apellido", "E-mail", "Direccion", "Telefono", "Fecha", "Estado"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false, false, false, false, false, false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        tablaAsistente.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        tablaAsistente.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
        jScrollPane1.setViewportView(tablaAsistente);

        btnCrearAsistente.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/12.png"))); // NOI18N
        btnCrearAsistente.setText("Nuevo");
        btnCrearAsistente.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnCrearAsistenteActionPerformed(evt);
            }
        });

        btnModificarAsistente.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/13.png"))); // NOI18N
        btnModificarAsistente.setText("Editar");
        btnModificarAsistente.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnModificarAsistenteActionPerformed(evt);
            }
        });

        btnEliminarAsistente.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/14.png"))); // NOI18N
        btnEliminarAsistente.setText("Inhabilitar");
        btnEliminarAsistente.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnEliminarAsistenteActionPerformed(evt);
            }
        });

        btnActivarAsistente.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/15.png"))); // NOI18N
        btnActivarAsistente.setText("Habilitar");
        btnActivarAsistente.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnActivarAsistenteActionPerformed(evt);
            }
        });

        btnMatricular.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/16.png"))); // NOI18N
        btnMatricular.setText("Matricular");
        btnMatricular.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnMatricularActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout panelAsistenteLayout = new javax.swing.GroupLayout(panelAsistente);
        panelAsistente.setLayout(panelAsistenteLayout);
        panelAsistenteLayout.setHorizontalGroup(
            panelAsistenteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panelAsistenteLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(panelAsistenteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 735, Short.MAX_VALUE)
                    .addGroup(panelAsistenteLayout.createSequentialGroup()
                        .addComponent(btnCrearAsistente, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnModificarAsistente, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnActivarAsistente, javax.swing.GroupLayout.PREFERRED_SIZE, 115, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnEliminarAsistente, javax.swing.GroupLayout.PREFERRED_SIZE, 116, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnMatricular)
                        .addGap(0, 212, Short.MAX_VALUE)))
                .addContainerGap())
        );
        panelAsistenteLayout.setVerticalGroup(
            panelAsistenteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelAsistenteLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 472, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(panelAsistenteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnCrearAsistente)
                    .addComponent(btnModificarAsistente)
                    .addComponent(btnEliminarAsistente)
                    .addComponent(btnActivarAsistente)
                    .addComponent(btnMatricular, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
        );

        panelSeleccion.addTab("Asistente", new javax.swing.ImageIcon(getClass().getResource("/imagenes/4.png")), panelAsistente); // NOI18N

        tablaEvento.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "ID", "Nombre", "Fecha", "Costo", "Expositor", "Tema", "Tipo", "Cupo", "Estado"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false, false, false, false, false, false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        tablaEvento.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
        jScrollPane2.setViewportView(tablaEvento);

        btnNuevoEvento.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/16.png"))); // NOI18N
        btnNuevoEvento.setText("Nuevo");
        btnNuevoEvento.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnNuevoEventoActionPerformed(evt);
            }
        });

        btnEliminarEvento.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/19.png"))); // NOI18N
        btnEliminarEvento.setText("Cancelar");
        btnEliminarEvento.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnEliminarEventoActionPerformed(evt);
            }
        });

        btnActivarEvento.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/18.png"))); // NOI18N
        btnActivarEvento.setText("Activar");
        btnActivarEvento.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnActivarEventoActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout PanelEventoLayout = new javax.swing.GroupLayout(PanelEvento);
        PanelEvento.setLayout(PanelEventoLayout);
        PanelEventoLayout.setHorizontalGroup(
            PanelEventoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PanelEventoLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(PanelEventoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(PanelEventoLayout.createSequentialGroup()
                        .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 788, Short.MAX_VALUE)
                        .addContainerGap())
                    .addGroup(PanelEventoLayout.createSequentialGroup()
                        .addComponent(btnNuevoEvento, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnActivarEvento)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnEliminarEvento)
                        .addGap(0, 0, Short.MAX_VALUE))))
        );
        PanelEventoLayout.setVerticalGroup(
            PanelEventoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PanelEventoLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 472, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(PanelEventoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnNuevoEvento)
                    .addComponent(btnEliminarEvento)
                    .addComponent(btnActivarEvento))
                .addContainerGap())
        );

        panelSeleccion.addTab("Evento", new javax.swing.ImageIcon(getClass().getResource("/imagenes/3.png")), PanelEvento); // NOI18N

        btnCrearMaterial.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/22.png"))); // NOI18N
        btnCrearMaterial.setText("Nuevo");
        btnCrearMaterial.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnCrearMaterialActionPerformed(evt);
            }
        });

        btnEliminarMaterial.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/24.png"))); // NOI18N
        btnEliminarMaterial.setText("Eliminar");
        btnEliminarMaterial.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnEliminarMaterialActionPerformed(evt);
            }
        });

        btnModificarMaterial.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/23.png"))); // NOI18N
        btnModificarMaterial.setText("Editar");
        btnModificarMaterial.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnModificarMaterialActionPerformed(evt);
            }
        });

        tablaMaterial.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "Nombre", "Cantidad", "Costo", "Descripcion"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        tablaMaterial.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
        jScrollPane4.setViewportView(tablaMaterial);

        javax.swing.GroupLayout PanelMaterialLayout = new javax.swing.GroupLayout(PanelMaterial);
        PanelMaterial.setLayout(PanelMaterialLayout);
        PanelMaterialLayout.setHorizontalGroup(
            PanelMaterialLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, PanelMaterialLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(PanelMaterialLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jScrollPane4, javax.swing.GroupLayout.DEFAULT_SIZE, 788, Short.MAX_VALUE)
                    .addGroup(PanelMaterialLayout.createSequentialGroup()
                        .addComponent(btnCrearMaterial, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnModificarMaterial, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnEliminarMaterial, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(0, 0, Short.MAX_VALUE)))
                .addContainerGap())
        );
        PanelMaterialLayout.setVerticalGroup(
            PanelMaterialLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PanelMaterialLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane4, javax.swing.GroupLayout.DEFAULT_SIZE, 472, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(PanelMaterialLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnCrearMaterial)
                    .addComponent(btnEliminarMaterial)
                    .addComponent(btnModificarMaterial))
                .addContainerGap())
        );

        panelSeleccion.addTab("Material", new javax.swing.ImageIcon(getClass().getResource("/imagenes/5.png")), PanelMaterial); // NOI18N

        tablaLugar.setModel(lugarDAO.seleccionar());
        jScrollPane8.setViewportView(tablaLugar);

        btnCrearLugar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/22.png"))); // NOI18N
        btnCrearLugar.setText("Nuevo");
        btnCrearLugar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnCrearLugarActionPerformed(evt);
            }
        });

        btnModificarLugar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/23.png"))); // NOI18N
        btnModificarLugar.setText("Editar");
        btnModificarLugar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnModificarLugarActionPerformed(evt);
            }
        });

        btnEliminarLugar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/24.png"))); // NOI18N
        btnEliminarLugar.setText("Eliminar");
        btnEliminarLugar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnEliminarLugarActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout PanelLugarLayout = new javax.swing.GroupLayout(PanelLugar);
        PanelLugar.setLayout(PanelLugarLayout);
        PanelLugarLayout.setHorizontalGroup(
            PanelLugarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PanelLugarLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(PanelLugarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane8, javax.swing.GroupLayout.DEFAULT_SIZE, 788, Short.MAX_VALUE)
                    .addGroup(PanelLugarLayout.createSequentialGroup()
                        .addComponent(btnCrearLugar, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnModificarLugar, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnEliminarLugar, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(0, 0, Short.MAX_VALUE)))
                .addContainerGap())
        );
        PanelLugarLayout.setVerticalGroup(
            PanelLugarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PanelLugarLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane8, javax.swing.GroupLayout.DEFAULT_SIZE, 472, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(PanelLugarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnCrearLugar)
                    .addComponent(btnEliminarLugar)
                    .addComponent(btnModificarLugar))
                .addContainerGap())
        );

        panelSeleccion.addTab("Lugares", new javax.swing.ImageIcon(getClass().getResource("/imagenes/30.png")), PanelLugar); // NOI18N

        tablaPago.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ));
        tablaPago.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
        jScrollPane6.setViewportView(tablaPago);

        btnNuevoPago.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/25.png"))); // NOI18N
        btnNuevoPago.setText("Registrar Pago");

        javax.swing.GroupLayout PanelPagoLayout = new javax.swing.GroupLayout(PanelPago);
        PanelPago.setLayout(PanelPagoLayout);
        PanelPagoLayout.setHorizontalGroup(
            PanelPagoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PanelPagoLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(PanelPagoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane6, javax.swing.GroupLayout.DEFAULT_SIZE, 788, Short.MAX_VALUE)
                    .addGroup(PanelPagoLayout.createSequentialGroup()
                        .addComponent(btnNuevoPago, javax.swing.GroupLayout.PREFERRED_SIZE, 141, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(0, 0, Short.MAX_VALUE)))
                .addContainerGap())
        );
        PanelPagoLayout.setVerticalGroup(
            PanelPagoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PanelPagoLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE, 454, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 24, Short.MAX_VALUE)
                .addComponent(btnNuevoPago)
                .addContainerGap())
        );

        panelSeleccion.addTab("Pagos", new javax.swing.ImageIcon(getClass().getResource("/imagenes/6.png")), PanelPago); // NOI18N

        tablaHorario.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "Hora", "Lunes", "Martes", "Miercoles", "Jueves", "Viernes", "Sabado", "Domingo"
            }
        ));
        tablaHorario.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
        jScrollPane5.setViewportView(tablaHorario);

        btnRefresh.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/26.png"))); // NOI18N
        btnRefresh.setText("Refrescar");
        btnRefresh.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnRefreshActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout PanelHorarioLayout = new javax.swing.GroupLayout(PanelHorario);
        PanelHorario.setLayout(PanelHorarioLayout);
        PanelHorarioLayout.setHorizontalGroup(
            PanelHorarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PanelHorarioLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(PanelHorarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane5, javax.swing.GroupLayout.DEFAULT_SIZE, 788, Short.MAX_VALUE)
                    .addGroup(PanelHorarioLayout.createSequentialGroup()
                        .addComponent(btnRefresh)
                        .addGap(0, 0, Short.MAX_VALUE)))
                .addContainerGap())
        );
        PanelHorarioLayout.setVerticalGroup(
            PanelHorarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PanelHorarioLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane5, javax.swing.GroupLayout.DEFAULT_SIZE, 474, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnRefresh)
                .addContainerGap())
        );

        panelSeleccion.addTab("Horario", new javax.swing.ImageIcon(getClass().getResource("/imagenes/7.png")), PanelHorario); // NOI18N

        lbNombreEscarapela.setText("Documento:");

        tfEscarapelaDocumento.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                tfEscarapelaDocumentoActionPerformed(evt);
            }
        });

        lbIDEscarapela.setText("Nombre:");

        tfEscarapelaNombre.setEditable(false);

        lbEventoEscarapela.setText("Teléfono:");

        tfEscarapelaTelefono.setEditable(false);

        lbLugarEscarapela.setText("Email:");

        tfEscarapelaEmail.setEditable(false);

        btnAceptarEscarapela.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/27.png"))); // NOI18N
        btnAceptarEscarapela.setText("Generar");
        btnAceptarEscarapela.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnAceptarEscarapelaActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9);
        jPanel9.setLayout(jPanel9Layout);
        jPanel9Layout.setHorizontalGroup(
            jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel9Layout.createSequentialGroup()
                .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel9Layout.createSequentialGroup()
                        .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(btnAceptarEscarapela))
                    .addGroup(jPanel9Layout.createSequentialGroup()
                        .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lbNombreEscarapela, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lbEventoEscarapela, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(tfEscarapelaDocumento, javax.swing.GroupLayout.DEFAULT_SIZE, 201, Short.MAX_VALUE)
                            .addComponent(tfEscarapelaTelefono))
                        .addGap(29, 29, 29)
                        .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lbLugarEscarapela, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lbIDEscarapela, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 52, Short.MAX_VALUE)
                        .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(tfEscarapelaNombre, javax.swing.GroupLayout.DEFAULT_SIZE, 272, Short.MAX_VALUE)
                            .addComponent(tfEscarapelaEmail))))
                .addContainerGap())
        );
        jPanel9Layout.setVerticalGroup(
            jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel9Layout.createSequentialGroup()
                .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lbNombreEscarapela, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(tfEscarapelaDocumento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lbIDEscarapela, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(tfEscarapelaNombre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lbEventoEscarapela)
                    .addComponent(tfEscarapelaTelefono, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(tfEscarapelaEmail)
                    .addComponent(lbLugarEscarapela, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(10, 10, 10)
                .addComponent(btnAceptarEscarapela)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        PanelVisorEscarapela.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        PanelVisorEscarapela.setLayout(new java.awt.BorderLayout());

        javax.swing.GroupLayout PanelEscarapelaLayout = new javax.swing.GroupLayout(PanelEscarapela);
        PanelEscarapela.setLayout(PanelEscarapelaLayout);
        PanelEscarapelaLayout.setHorizontalGroup(
            PanelEscarapelaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, PanelEscarapelaLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(PanelEscarapelaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(PanelVisorEscarapela, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanel9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
        );
        PanelEscarapelaLayout.setVerticalGroup(
            PanelEscarapelaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PanelEscarapelaLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 13, Short.MAX_VALUE)
                .addComponent(PanelVisorEscarapela, javax.swing.GroupLayout.PREFERRED_SIZE, 400, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );

        panelSeleccion.addTab("Escarapela", new javax.swing.ImageIcon(getClass().getResource("/imagenes/8.png")), PanelEscarapela); // NOI18N

        PanelVisorReportes.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        PanelVisorReportes.setLayout(new java.awt.BorderLayout());

        btGenerarReporte.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/27.png"))); // NOI18N
        btGenerarReporte.setText("Generar");
        btGenerarReporte.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btGenerarReporteActionPerformed(evt);
            }
        });

        jLabel1.setText("Seleccionar Reporte:");

        javax.swing.GroupLayout jPanel17Layout = new javax.swing.GroupLayout(jPanel17);
        jPanel17.setLayout(jPanel17Layout);
        jPanel17Layout.setHorizontalGroup(
            jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel17Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 148, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jcbListaReportes, javax.swing.GroupLayout.PREFERRED_SIZE, 453, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btGenerarReporte, javax.swing.GroupLayout.PREFERRED_SIZE, 104, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );
        jPanel17Layout.setVerticalGroup(
            jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel17Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel1)
                    .addComponent(jcbListaReportes, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btGenerarReporte))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout PanelReportesLayout = new javax.swing.GroupLayout(PanelReportes);
        PanelReportes.setLayout(PanelReportesLayout);
        PanelReportesLayout.setHorizontalGroup(
            PanelReportesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PanelReportesLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(PanelReportesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(PanelVisorReportes, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(PanelReportesLayout.createSequentialGroup()
                        .addComponent(jPanel17, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(0, 53, Short.MAX_VALUE)))
                .addContainerGap())
        );
        PanelReportesLayout.setVerticalGroup(
            PanelReportesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PanelReportesLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel17, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(PanelVisorReportes, javax.swing.GroupLayout.DEFAULT_SIZE, 452, Short.MAX_VALUE)
                .addContainerGap())
        );

        panelSeleccion.addTab("Reportes", new javax.swing.ImageIcon(getClass().getResource("/imagenes/10.png")), PanelReportes); // NOI18N

        tablaUsuarios.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {

            }
        ));
        jScrollPane7.setViewportView(tablaUsuarios);

        btnNuevo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/12.png"))); // NOI18N
        btnNuevo.setText("Nuevo");
        btnNuevo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnNuevoActionPerformed(evt);
            }
        });

        btnEditarUsuario.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/13.png"))); // NOI18N
        btnEditarUsuario.setText("Editar");
        btnEditarUsuario.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnEditarUsuarioActionPerformed(evt);
            }
        });

        btnEliminarUsuario.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/14.png"))); // NOI18N
        btnEliminarUsuario.setText("Inhabilitar");
        btnEliminarUsuario.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnEliminarUsuarioActionPerformed(evt);
            }
        });

        btnHabilitarUsuario.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/15.png"))); // NOI18N
        btnHabilitarUsuario.setText("Habilitar");
        btnHabilitarUsuario.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnHabilitarUsuarioActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout PanelUsuariosLayout = new javax.swing.GroupLayout(PanelUsuarios);
        PanelUsuarios.setLayout(PanelUsuariosLayout);
        PanelUsuariosLayout.setHorizontalGroup(
            PanelUsuariosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PanelUsuariosLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(PanelUsuariosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane7, javax.swing.GroupLayout.DEFAULT_SIZE, 735, Short.MAX_VALUE)
                    .addGroup(PanelUsuariosLayout.createSequentialGroup()
                        .addComponent(btnNuevo, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnEditarUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, 105, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnHabilitarUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, 121, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnEliminarUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(0, 319, Short.MAX_VALUE)))
                .addContainerGap())
        );
        PanelUsuariosLayout.setVerticalGroup(
            PanelUsuariosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PanelUsuariosLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane7, javax.swing.GroupLayout.DEFAULT_SIZE, 472, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(PanelUsuariosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnNuevo)
                    .addComponent(btnEditarUsuario)
                    .addComponent(btnEliminarUsuario)
                    .addComponent(btnHabilitarUsuario))
                .addContainerGap())
        );

        panelSeleccion.addTab("Usuarios", new javax.swing.ImageIcon(getClass().getResource("/imagenes/9.png")), PanelUsuarios); // NOI18N

        btnCerrarSesion.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/29.png"))); // NOI18N
        btnCerrarSesion.setText("Cerrar sesion");
        btnCerrarSesion.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnCerrarSesionActionPerformed(evt);
            }
        });

        btnSalir.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/28.png"))); // NOI18N
        btnSalir.setText("Salir");
        btnSalir.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnSalirActionPerformed(evt);
            }
        });

        lbUsuario.setText("usuario");

        javax.swing.GroupLayout PanelOpcionesLayout = new javax.swing.GroupLayout(PanelOpciones);
        PanelOpciones.setLayout(PanelOpcionesLayout);
        PanelOpcionesLayout.setHorizontalGroup(
            PanelOpcionesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PanelOpcionesLayout.createSequentialGroup()
                .addGap(41, 41, 41)
                .addComponent(btnCerrarSesion)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnSalir, javax.swing.GroupLayout.PREFERRED_SIZE, 105, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(533, Short.MAX_VALUE))
            .addGroup(PanelOpcionesLayout.createSequentialGroup()
                .addGap(25, 25, 25)
                .addComponent(lbUsuario, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );
        PanelOpcionesLayout.setVerticalGroup(
            PanelOpcionesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PanelOpcionesLayout.createSequentialGroup()
                .addGap(21, 21, 21)
                .addComponent(lbUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(116, 116, 116)
                .addGroup(PanelOpcionesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnSalir)
                    .addComponent(btnCerrarSesion))
                .addContainerGap(325, Short.MAX_VALUE))
        );

        panelSeleccion.addTab("Opciones", new javax.swing.ImageIcon(getClass().getResource("/imagenes/11.png")), PanelOpciones); // NOI18N

        javax.swing.GroupLayout PanelPrincipalLayout = new javax.swing.GroupLayout(PanelPrincipal);
        PanelPrincipal.setLayout(PanelPrincipalLayout);
        PanelPrincipalLayout.setHorizontalGroup(
            PanelPrincipalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PanelPrincipalLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(panelSeleccion)
                .addContainerGap())
        );
        PanelPrincipalLayout.setVerticalGroup(
            PanelPrincipalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PanelPrincipalLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(panelSeleccion)
                .addContainerGap())
        );

        panelSeleccion.getAccessibleContext().setAccessibleName("");

        getContentPane().add(PanelPrincipal, java.awt.BorderLayout.CENTER);

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void panelSeleccionMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_panelSeleccionMouseClicked
        //jPanelEventos = new PanelEvento(); 
    }//GEN-LAST:event_panelSeleccionMouseClicked

    private void btnCrearAsistenteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnCrearAsistenteActionPerformed
        dbtnCrearAsistente.setEnabled(true);
        dbtnEditarAsistente.setEnabled(false);
        dialogAsistente.pack();
        dialogAsistente.setVisible(true);
    }//GEN-LAST:event_btnCrearAsistenteActionPerformed

    private void btnModificarAsistenteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnModificarAsistenteActionPerformed
        int fila = tablaAsistente.getSelectedRow();
        if (fila < 0) {
            Dialogo.error(dialogAsistente, "¡Debe seleccionar un registro!");
            return;
        }

        Asistente asistente = new Asistente();
        asistente.setIdAsistente((Integer)( tablaAsistente.getValueAt(fila, 0)));

        if(!asistenteDAO.consultar(asistente)){
            Dialogo.error(dialogAsistente, "No puedes editar un asistente inactivo");
            return;
        }
        
        dtfCedulaAsistente.setText(asistente.getDocumento());
        dtfNombreAsistente.setText(asistente.getNombre());
        dtfApellidoAsistente.setText(asistente.getApellido());
        dtfTelefonoAsistente.setText(asistente.getTelefono());
        dtfDireccionAsistente.setText(asistente.getDireccion());
        dtfEmailAsistente.setText(asistente.getEmail());
        try {
            dtfFechaAsistente.setDate(new SimpleDateFormat("yyyy-MM-dd").parse(asistente.getFechaNac()));
        } catch (ParseException ex) {
            Logger.getLogger(FRMPrincipal.class.getName()).log(Level.SEVERE, null, ex);
        }
        
        dbtnEditarAsistente.setEnabled(true);
        dbtnCrearAsistente.setEnabled(false);
        dialogAsistente.pack();
        dialogAsistente.setLocationRelativeTo(this);
        dialogAsistente.setVisible(true);
        
   }//GEN-LAST:event_btnModificarAsistenteActionPerformed

    private void btnNuevoEventoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnNuevoEventoActionPerformed
        
        //Anadir expositores
        int rExpositor = tablaExpositor.getRowCount();
        String[] expositores = new String[rExpositor+1];
        expositores[0] = "Seleccione";
        for(int i=0; i<rExpositor; i++){
            expositores[i+1] = tablaExpositor.getValueAt(i, 2).toString();
        }
        comboExpositorEvento.setModel(new DefaultComboBoxModel(expositores));
        
        //Anadir Lugares
        int rLugar = tablaLugar.getRowCount();
        String[] lugares = new String[rLugar+1];
        lugares[0] = "Seleccione";
        for(int i=0; i<rLugar; i++){
            lugares[i+1] = tablaLugar.getValueAt(i, 1).toString();
        }
        comboLugarEvento.setModel(new DefaultComboBoxModel(lugares));
        
        //Anadir Material
        int rMaterial = tablaMaterial.getRowCount();
        String[] materiales = new String[rMaterial+1];
        materiales[0] = "Seleccione";
        for(int i=0; i<rMaterial; i++){
            materiales[i+1] = tablaMaterial.getValueAt(i, 1).toString();
        }
        comboMaterialEvento.setModel(new DefaultComboBoxModel(materiales));
        
        //Opciones
        dbtnCrearEvento.setEnabled(true);
        dbtnEditarEvento.setEnabled(false);
        dialogEvento.pack();
        dialogEvento.setLocationRelativeTo(this);
        dialogEvento.setVisible(true);        
    }//GEN-LAST:event_btnNuevoEventoActionPerformed

    private void btnEditarEventoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnEditarEventoActionPerformed

    }//GEN-LAST:event_btnEditarEventoActionPerformed

    private void btnEliminarEventoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnEliminarEventoActionPerformed
        int fila = tablaEvento.getSelectedRow();
        if (fila < 0) {
            Dialogo.error(PanelEvento, "¡Debe seleccionar un registro!");
            return;
        }
        
        //Restriccion de cancelar evento
        Evento evento = new Evento();
        evento.setIdEvento((Integer)(tablaEvento.getValueAt(fila, 0)));
        Date f=new Date();

        if(!eventoDAO.consultar(evento)){
            Dialogo.error(dialogEvento, "Ha ocurrido un error");
            return;
        }else{
            try {
                String fechaAc = new SimpleDateFormat("yyyy/MM/dd").format(new Date());
                Date fechaEvento = new SimpleDateFormat("yyyy/MM/dd").parse(evento.getFecha_inicio());
                Date fechaActual = new SimpleDateFormat("yyyy/MM/dd").parse(fechaAc);
                
                f=fechaEvento;
                
                if(fechaActual.before(fechaEvento)){
                    Dialogo.error(this, "No puedes cancelar un evento que ya haya iniciado");
                    return;
                }
                
            } catch (ParseException ex) {Dialogo.error(this, "FEcha de evento incorrecta");
            System.out.println(f);
            return;}
        }//Fin del else
        
        //Fin de la restriccion
        int opt = Dialogo.confirmacionSN(this, "¿Realmente desea Cancelar este evento?");
        if (opt == JOptionPane.YES_OPTION) {
            eventoDAO.eliminar((Integer)( tablaEvento.getValueAt(fila, 0)), 0);
        }
        tablaEvento.setModel(eventoDAO.seleccionar());
    }//GEN-LAST:event_btnEliminarEventoActionPerformed

    private void btnVerAsistentesEventoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnVerAsistentesEventoActionPerformed
    }//GEN-LAST:event_btnVerAsistentesEventoActionPerformed

    private void btnVerMaterialesEventoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnVerMaterialesEventoActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_btnVerMaterialesEventoActionPerformed

    private void btnNuevoExpositorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnNuevoExpositorActionPerformed
        dbtnCrearExpositor.setEnabled(true);
        dbtnEditarExpositor.setEnabled(false);
        dialogExpositor.pack();
        dialogExpositor.setLocationRelativeTo(this);
        dialogExpositor.setVisible(true);
    }//GEN-LAST:event_btnNuevoExpositorActionPerformed

    private void btnEditarExpositorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnEditarExpositorActionPerformed
        int fila = tablaExpositor.getSelectedRow();
        if (fila < 0) {
            Dialogo.error(this, "¡Debe seleccionar un registro!");
            return;
        }

        Expositor expositor = new Expositor();
        expositor.setIdExpositor((Integer)(tablaExpositor.getValueAt(fila, 0)));

        if(!expositorDAO.consultar(expositor)){
            Dialogo.error(dialogExpositor, "No puedes editar un expositor inactivo");
            return;
        }
        
        dtfCedulaExpositor.setText(expositor.getDocumento());
        dtfNombreExpositor.setText(expositor.getNombre());
        dtfApellidoExpositor.setText(expositor.getApellido());
        dtfTituloExpositor.setText(expositor.getTituloAcademico());
        dtfTelefonoExpositor.setText(expositor.getTelefono());
        dtfEmailExpositor.setText(expositor.getEmail());
        dtfDireccionExpositor.setText(expositor.getDireccion());
        dtfPerfilExpositor.setText(expositor.getPerfilTematico());

        dbtnEditarExpositor.setEnabled(true);
        dbtnCrearExpositor.setEnabled(false);
        dialogExpositor.pack();
        dialogExpositor.setLocationRelativeTo(this);
        dialogExpositor.setVisible(true);
    }//GEN-LAST:event_btnEditarExpositorActionPerformed

    private void dbtnCancelarExpositorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_dbtnCancelarExpositorActionPerformed
        dialogExpositor.setVisible(false);
        limpiarFormulario(dialogExpositor.getContentPane());
    }//GEN-LAST:event_dbtnCancelarExpositorActionPerformed

    private void dbtnCancelarMaterialActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_dbtnCancelarMaterialActionPerformed
        dbtnEditarMaterial.setEnabled(true);
        dbtnCrearMaterial.setEnabled(true);
        dialogMaterial.setVisible(false);
        limpiarFormulario(dialogMaterial.getContentPane());
    }//GEN-LAST:event_dbtnCancelarMaterialActionPerformed

    private void btnCrearMaterialActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnCrearMaterialActionPerformed
        dbtnCrearMaterial.setEnabled(true);
        dbtnEditarMaterial.setEnabled(false);
        dialogMaterial.pack();
        dialogMaterial.setLocationRelativeTo(this);
        dialogMaterial.setVisible(true);
    }//GEN-LAST:event_btnCrearMaterialActionPerformed

    private void btnModificarMaterialActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnModificarMaterialActionPerformed
        int fila = tablaMaterial.getSelectedRow();
        if (fila < 0) {
            Dialogo.error(this, "¡Debe seleccionar un registro!");
            return;
        }

        Material material = new Material();
        material.setIdMaterial((Integer)(tablaMaterial.getValueAt(fila, 0)));

        if(!materialDAO.consultar(material)){
            Dialogo.error(dialogMaterial, "Ha ocurrido un error");
            return;
        }
        
        dtfNombreMaterial.setText(material.getNombre());
        dtfCostoMaterial.setText(material.getCosto()+"");
        dtfDescripcionMaterial.setText(material.getDescripcion());
        
        dbtnEditarMaterial.setEnabled(true);
        dbtnCrearMaterial.setEnabled(false);
        dialogMaterial.pack();
        dialogMaterial.setLocationRelativeTo(this);
        dialogMaterial.setVisible(true);
    }//GEN-LAST:event_btnModificarMaterialActionPerformed

    private void btnEliminarMaterialActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnEliminarMaterialActionPerformed
        int fila = tablaMaterial.getSelectedRow();
        if (fila < 0) {
            Dialogo.error(this, "¡Debe seleccionar un registro!");
            return;
        }
        int opt = Dialogo.confirmacionSN(this, "¿Realmente desea eliminar este material?");
        if (opt == JOptionPane.YES_OPTION) {
            materialDAO.eliminar((Integer)( tablaMaterial.getValueAt(fila, 0)));
        }
        tablaMaterial.setModel(materialDAO.seleccionar());
    }//GEN-LAST:event_btnEliminarMaterialActionPerformed

    private void dbtnPagarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_dbtnPagarActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_dbtnPagarActionPerformed

    private void dbtnCancelarPagoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_dbtnCancelarPagoActionPerformed

        dialogPago.setVisible(false);
        dtfValorPago.setText("");
        dtfFechaPago.setText("");
    }//GEN-LAST:event_dbtnCancelarPagoActionPerformed

    private void btnRefreshActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnRefreshActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_btnRefreshActionPerformed

    private void btnAceptarEscarapelaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnAceptarEscarapelaActionPerformed
        //int sel = jcbEscarapelaEvento.getSelectedIndex();
        if (tfEscarapelaNombre.getText().length() == 0 ) {
            Dialogo.error(this, "Es necesario que digite un Documento.");
            return;
        }

        JFileChooser selec = new JFileChooser();
        selec.setFileFilter(new FileFilter() {
            @Override
            public boolean accept(File f) {
                if (f.isDirectory()) {
                    return true;
                }
                String s = f.getName();
                return s.endsWith(".jpg") || s.endsWith(".png");
            }

            @Override
            public String getDescription() {
                return "Imágenes";
            }
        });

        int optF = selec.showOpenDialog(this);

        if (optF == JFileChooser.APPROVE_OPTION) {

            Map parametros = new HashMap();
            InputStream is = null;
            try {
                is = new FileInputStream(selec.getSelectedFile());
            } catch (FileNotFoundException ex) {
                Logger.getLogger(FRMPrincipal.class.getName()).log(Level.SEVERE, null, ex);
            }
            String tipo = !escarapelasAsistente ? "Expositor" : "Asistente";
            parametros.put("FOTO", is);
            parametros.put("TIPO", tipo);
            parametros.put("ID", tfEscarapelaDocumento.getText());
            parametros.put("NOMBRE", tfEscarapelaNombre.getText());
            parametros.put("EMAIL", tfEscarapelaEmail.getText());
            parametros.put("TELEFONO", tfEscarapelaTelefono.getText());

            Reporte reporte = new Reporte("Escarapela.jasper", "Escarapela", parametros);
            JRViewer jv = new JRViewer(reporteador.generarReporte(reporte));

            PanelVisorEscarapela.removeAll();
            PanelVisorEscarapela.add(jv, BorderLayout.CENTER);
            PanelVisorEscarapela.revalidate();
        } else {
            Dialogo.informacion(this, "Es necesario que seleccione una imagen");
        }
    }//GEN-LAST:event_btnAceptarEscarapelaActionPerformed

    private void btnCerrarSesionActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnCerrarSesionActionPerformed
        dialogLogin.setVisible(true);
        lbUsuario.setText("");

    }//GEN-LAST:event_btnCerrarSesionActionPerformed

    private void btnSalirActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnSalirActionPerformed
        if (JOptionPane.showConfirmDialog(this, "¿Desea cerrar la aplicación?") == JOptionPane.YES_OPTION) {
            this.dispose();
            System.exit(0);
        }
    }//GEN-LAST:event_btnSalirActionPerformed

    private void btnIngresarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnIngresarActionPerformed

        Usuario usuario = new Usuario();
        usuario.setDocumento(tfUsuario.getText());
        usuario.setClave(String.valueOf(tfContraseña.getPassword()));

        if (usuarioDAO.consultar(usuario) && usuario.getEstado().equals("1")) {
            dialogLogin.dispose();
            lblUsuarioInicio.setText(usuario.getNombre() + " " +usuario.getApellido());
            lbUsuario.setText(usuario.getNombre() + " " +usuario.getApellido());
            
            if(!usuario.getTipo().equals("A")){
                tablaUsuarios.setEnabled(false);
                btnNuevo.setEnabled(false);
                btnEditarUsuario.setEnabled(false);
                btnEliminarUsuario.setEnabled(false);
                btnHabilitarUsuario.setEnabled(false);
            }else{
                tablaUsuarios.setEnabled(true);
                btnNuevo.setEnabled(true);
                btnEditarUsuario.setEnabled(true);
                btnEliminarUsuario.setEnabled(true);
                btnHabilitarUsuario.setEnabled(true);
            }
            
        } else {
            Dialogo.error(this, "Usuario o clave incorrecta!");
            tfUsuario.requestFocus();
        }
    }//GEN-LAST:event_btnIngresarActionPerformed

    private void formWindowClosing(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_formWindowClosing
        if (JOptionPane.showConfirmDialog(this, "¿Desea cerrar la aplicación?") == JOptionPane.YES_OPTION) {
            this.dispose();
            System.exit(0);
        }
    }//GEN-LAST:event_formWindowClosing

    private void dialogLoginWindowClosing(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_dialogLoginWindowClosing
        if (JOptionPane.showConfirmDialog(this, "¿Desea cerrar la aplicación?") == JOptionPane.YES_OPTION) {
            this.dispose();
            System.exit(0);
        }
    }//GEN-LAST:event_dialogLoginWindowClosing

    private void brnCancelarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_brnCancelarActionPerformed

        this.dispose();
        System.exit(0);
    }//GEN-LAST:event_brnCancelarActionPerformed

    private void btGenerarReporteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btGenerarReporteActionPerformed

       Reporte reporte = (Reporte) jcbListaReportes.getSelectedItem();

        JRViewer jv = new JRViewer(reporteador.generarReporte(reporte));

        PanelVisorReportes.removeAll();
        PanelVisorReportes.add(jv, BorderLayout.CENTER);
        PanelVisorReportes.revalidate();

    }//GEN-LAST:event_btGenerarReporteActionPerformed

    private void btnNuevoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnNuevoActionPerformed
        dbtnEditarUsuario.setEnabled(false);
        dbtnCrearUsuario.setEnabled(true);
        dialogUsuario.pack();
        dialogUsuario.setLocationRelativeTo(this);
        dialogUsuario.setVisible(true);
    }//GEN-LAST:event_btnNuevoActionPerformed

    private void btnEditarUsuarioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnEditarUsuarioActionPerformed
        int fila = tablaUsuarios.getSelectedRow();
        if (fila < 0) {
            Dialogo.error(this, "¡Debe seleccionar un registro!");
            return;
        }

        Usuario usuario = new Usuario();
        usuario.setIdUsuario((Integer) tablaUsuarios.getValueAt(fila, 0));

        if(!usuarioDAO.consultar(usuario)){
            Dialogo.error(dialogUsuario, "No puedes editar un usuario inactivo");
            return;
        }

        tfDocumentoUsuario.setText(usuario.getDocumento());
        tfClaveUsuario.setText(usuario.getClave());
        tfNombreUsuario.setText(usuario.getNombre());
        tfApellidoUsuario.setText(usuario.getApellido());
        tfDireccionUsuario.setText(usuario.getDireccion());
        tfTelefonoUsuario.setText(usuario.getTelefono());
        tfTipoUsuario.setSelectedIndex(usuario.getTipo().equals("A") ? 1 : 2);
        tfCargoUsuario.setText(usuario.getCargo());

        dbtnEditarUsuario.setEnabled(true);
        dbtnCrearUsuario.setEnabled(false);
        dialogUsuario.pack();
        dialogUsuario.setLocationRelativeTo(this);
        dialogUsuario.setVisible(true);
    }//GEN-LAST:event_btnEditarUsuarioActionPerformed

    private void dbtnCrearUsuarioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_dbtnCrearUsuarioActionPerformed

        Usuario usuario = new Usuario();
        usuario.setDocumento(tfDocumentoUsuario.getText());
        usuario.setClave(String.valueOf(tfClaveUsuario.getPassword()));
        usuario.setNombre(tfNombreUsuario.getText());
        usuario.setApellido(tfApellidoUsuario.getText());
        usuario.setDireccion(tfDireccionUsuario.getText());
        usuario.setTelefono(tfTelefonoUsuario.getText());
        usuario.setTipo(tfTipoUsuario.getSelectedIndex() == 1 ? "A" : "O");
        usuario.setCargo(tfCargoUsuario.getText());
        usuario.setEstado("1");
        
        if(camposVacios(dialogUsuario.getContentPane())){
            Dialogo.error(dialogUsuario,"Hay campos Vacios");
        }else{
            if (usuarioDAO.crear(usuario)) {
                Dialogo.informacion(dialogUsuario,"EL usuario ha sido registrado exitosamente");
                tablaUsuarios.setModel(usuarioDAO.seleccionar());
            } else {
                JOptionPane.showMessageDialog(this, "¡Ha ocurrido un error!");
                tfUsuario.requestFocus();
            }//Fin del else
            limpiarFormulario(dialogUsuario.getContentPane());
        }//Fin del else
    }//GEN-LAST:event_dbtnCrearUsuarioActionPerformed

    private void dbtnCrearExpositorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_dbtnCrearExpositorActionPerformed
        // TODO add your handling code here:
        Expositor expositor = new Expositor();
        expositor.setDocumento(dtfCedulaExpositor.getText());
        expositor.setNombre(dtfNombreExpositor.getText());
        expositor.setApellido(dtfApellidoExpositor.getText());
        expositor.setTituloAcademico(dtfTituloExpositor.getText());
        expositor.setTelefono(dtfTelefonoExpositor.getText());
        expositor.setEmail(dtfEmailExpositor.getText());
        expositor.setDireccion(dtfDireccionExpositor.getText());
        expositor.setPerfilTematico(dtfPerfilExpositor.getText());
        expositor.setEstado("1");
        
        if(camposVacios(dialogExpositor.getContentPane())){
            Dialogo.error(dialogExpositor,"Hay campos Vacios");
        }else{
            if (expositorDAO.crear(expositor)) {
                Dialogo.informacion(dialogExpositor,"EL expositor ha sido registrado exitosamente");
                tablaExpositor.setModel(expositorDAO.seleccionar());
            } else {
                Dialogo.error(this, "¡Ha ocurrido un error!");
            }//Fin del else
            limpiarFormulario(dialogExpositor.getContentPane());
            dtfCedulaExpositor.requestFocus();
        }//Fin del else
    }//GEN-LAST:event_dbtnCrearExpositorActionPerformed

    private void dbtnEditarExpositorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_dbtnEditarExpositorActionPerformed
        // TODO add your handling code here:
        int fila = tablaExpositor.getSelectedRow();
        
        if(camposVacios(dialogExpositor.getContentPane())){
            Dialogo.error(dialogExpositor, "Hay campos vacios");
        }else{
            Expositor expositor = new Expositor();
            expositor.setIdExpositor((Integer)( tablaExpositor.getValueAt(fila, 0)));
            expositor.setDocumento(dtfCedulaExpositor.getText());
            expositor.setNombre(dtfNombreExpositor.getText());
            expositor.setApellido(dtfApellidoExpositor.getText());
            expositor.setDireccion(dtfDireccionExpositor.getText());
            expositor.setTelefono(dtfTelefonoExpositor.getText());
            expositor.setEmail(dtfEmailExpositor.getText());
            expositor.setTituloAcademico(dtfTituloExpositor.getText());
            expositor.setPerfilTematico(dtfPerfilExpositor.getText());
            expositor.setEstado("1");

            if (expositorDAO.modificar(expositor)) {
                Dialogo.informacion(dialogExpositor,"El expositor ha sido actualizado exitosamente");
                tablaExpositor.setModel(expositorDAO.seleccionar());
                dialogExpositor.dispose();
            } else {
                Dialogo.error(this, "¡Ha ocurrido un error!");
                dtfCedulaExpositor.requestFocus();
            }
            limpiarFormulario(dialogExpositor.getContentPane());
        }
    }//GEN-LAST:event_dbtnEditarExpositorActionPerformed

    private void btnEliminarExpositorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnEliminarExpositorActionPerformed
        // TODO add your handling code here:
        int fila = tablaExpositor.getSelectedRow();
        if (fila < 0) {
            Dialogo.error(PanelExpositor, "¡Debe seleccionar un registro!");
            return;
        }
        int opt = Dialogo.confirmacionSN(this, "¿Realmente desea Inhabilitar este expositor?");
        if (opt == JOptionPane.YES_OPTION) {
            expositorDAO.eliminar((Integer)( tablaExpositor.getValueAt(fila, 0)),0);
        }
        tablaExpositor.setModel(expositorDAO.seleccionar());
    }//GEN-LAST:event_btnEliminarExpositorActionPerformed

    private void btnActivarExpositorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnActivarExpositorActionPerformed
        // TODO add your handling code here:
        int fila = tablaExpositor.getSelectedRow();
        if (fila < 0) {
            Dialogo.error(PanelExpositor, "¡Debe seleccionar un registro!");
            return;
        }
        int opt = Dialogo.confirmacionSN(this, "¿Realmente desea Habilitar este expositor?");
        if (opt == JOptionPane.YES_OPTION) {
            expositorDAO.eliminar((Integer)( tablaExpositor.getValueAt(fila, 0)),1);
        }
        tablaExpositor.setModel(expositorDAO.seleccionar());
    }//GEN-LAST:event_btnActivarExpositorActionPerformed

    private void dbtnCancelarUsuarioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_dbtnCancelarUsuarioActionPerformed
        dialogUsuario.dispose();
    }//GEN-LAST:event_dbtnCancelarUsuarioActionPerformed

    private void dbtnEditarUsuarioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_dbtnEditarUsuarioActionPerformed
        int fila = tablaUsuarios.getSelectedRow();
        
        if(camposVacios(dialogUsuario.getContentPane())){
            Dialogo.error(dialogUsuario, "Hay campos vacios!");
        }else{
            
            Usuario usuario = new Usuario();
            usuario.setIdUsuario((Integer) tablaUsuarios.getValueAt(fila, 0));
            usuario.setDocumento(tfDocumentoUsuario.getText());
            usuario.setClave(String.valueOf(tfClaveUsuario.getPassword()));
            usuario.setNombre(tfNombreUsuario.getText());
            usuario.setApellido(tfApellidoUsuario.getText());
            usuario.setDireccion(tfDireccionUsuario.getText());
            usuario.setTelefono(tfTelefonoUsuario.getText());
            usuario.setTipo(tfTipoUsuario.getSelectedIndex() == 1 ? "A" : "O");
            usuario.setCargo(tfCargoUsuario.getText());
            
            if (usuarioDAO.modificar(usuario)) {
                Dialogo.informacion(dialogUsuario,"El usuario ha sido actualizado exitosamente");
                tablaUsuarios.setModel(usuarioDAO.seleccionar());
                dialogUsuario.dispose();
            } else {
                Dialogo.error(this, "¡Ha ocurrido un error!");
                tfUsuario.requestFocus();
            }
            limpiarFormulario(dialogUsuario.getContentPane());
        }
    }//GEN-LAST:event_dbtnEditarUsuarioActionPerformed

    private void btnEliminarUsuarioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnEliminarUsuarioActionPerformed
        int fila = tablaUsuarios.getSelectedRow();
        if (fila < 0) {
            Dialogo.error(PanelUsuarios, "¡Debe seleccionar un registro!");
            return;
        }
        int opt = Dialogo.confirmacionSN(this, "¿Realmente desea Inhabilitar este usuario?");
        if (opt == JOptionPane.YES_OPTION) {
            usuarioDAO.eliminar((Integer) tablaUsuarios.getValueAt(fila, 0),0);
        }
        tablaUsuarios.setModel(usuarioDAO.seleccionar());
    }//GEN-LAST:event_btnEliminarUsuarioActionPerformed

    private void dtfIDExpositorKeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_dtfIDExpositorKeyReleased
        // TODO add your handling code here:        
    }//GEN-LAST:event_dtfIDExpositorKeyReleased

    private void panelSeleccionFocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_panelSeleccionFocusGained
        // TODO add your handling code here:
    }//GEN-LAST:event_panelSeleccionFocusGained

    private void PanelInicioFocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_PanelInicioFocusGained
        // TODO add your handling code here:
    }//GEN-LAST:event_PanelInicioFocusGained

    private void btnHabilitarUsuarioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnHabilitarUsuarioActionPerformed
        // TODO add your handling code here:
        int fila = tablaUsuarios.getSelectedRow();
        if (fila < 0) {
            Dialogo.error(PanelUsuarios, "¡Debe seleccionar un registro!");
            return;
        }
        int opt = Dialogo.confirmacionSN(this, "¿Realmente desea Habilitar este usuario?");
        if (opt == JOptionPane.YES_OPTION) {
            usuarioDAO.eliminar((Integer) tablaUsuarios.getValueAt(fila, 0),1);
        }
        tablaUsuarios.setModel(usuarioDAO.seleccionar());
    }//GEN-LAST:event_btnHabilitarUsuarioActionPerformed

    private void dtfCedulaExpositorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_dtfCedulaExpositorActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_dtfCedulaExpositorActionPerformed

    private void btnEliminarAsistenteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnEliminarAsistenteActionPerformed
        int fila = tablaAsistente.getSelectedRow();
        if (fila < 0) {
            Dialogo.error(this, "¡Debe seleccionar un registro!");
            return;
        }
        int opt = Dialogo.confirmacionSN(this, "¿Realmente desea Habilitar este expositor?");
        if (opt == JOptionPane.YES_OPTION) {
            asistenteDAO.eliminar((Integer)( tablaAsistente.getValueAt(fila, 0)),0);
        }
        tablaAsistente.setModel(asistenteDAO.seleccionar());
    }//GEN-LAST:event_btnEliminarAsistenteActionPerformed

    private void btnActivarAsistenteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnActivarAsistenteActionPerformed
        // TODO add your handling code here:
        int fila = tablaAsistente.getSelectedRow();
        if (fila < 0) {
            Dialogo.error(this, "¡Debe seleccionar un registro!");
            return;
        }
        int opt = Dialogo.confirmacionSN(this, "¿Realmente desea Habilitar este expositor?");
        if (opt == JOptionPane.YES_OPTION) {
            asistenteDAO.eliminar((Integer)( tablaAsistente.getValueAt(fila, 0)),1);
        }
        tablaAsistente.setModel(asistenteDAO.seleccionar());
    }//GEN-LAST:event_btnActivarAsistenteActionPerformed

    private void dbtnCancelarAsistenteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_dbtnCancelarAsistenteActionPerformed

        dialogAsistente.setVisible(false);
        dbtnEditarAsistente.setEnabled(true);
        dbtnCrearAsistente.setEnabled(true);
        limpiarFormulario(dialogAsistente.getContentPane());
    }//GEN-LAST:event_dbtnCancelarAsistenteActionPerformed

    private void dbtnCrearAsistenteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_dbtnCrearAsistenteActionPerformed
        // TODO add your handling code here:
                
        if(camposVacios(dialogAsistente.getContentPane())){
            Dialogo.error(dialogAsistente,"Hay campos Vacios");
        }else{
            Asistente asistente = new Asistente();
            asistente.setDocumento(dtfCedulaAsistente.getText());
            asistente.setNombre(dtfNombreAsistente.getText());
            asistente.setApellido(dtfApellidoAsistente.getText());
            asistente.setTelefono(dtfTelefonoAsistente.getText());
            asistente.setDireccion(dtfDireccionAsistente.getText());
            asistente.setEmail(dtfEmailAsistente.getText());
            asistente.setFechaNac(new SimpleDateFormat("yyyy/MM/dd").format(dtfFechaAsistente.getDate()));
            asistente.setEstado("1");
            
            if (asistenteDAO.crear(asistente)) {
                Dialogo.informacion(dialogAsistente,"EL asistente ha sido registrado exitosamente");
                tablaAsistente.setModel(asistenteDAO.seleccionar());
            } else {
                Dialogo.error(dialogAsistente, "¡Ha ocurrido un error!");
            }//Fin del else
            limpiarFormulario(dialogAsistente.getContentPane());
            dtfCedulaAsistente.requestFocus();
        }//Fin del else
    }//GEN-LAST:event_dbtnCrearAsistenteActionPerformed

    private void dbtnEditarAsistenteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_dbtnEditarAsistenteActionPerformed
        // TODO add your handling code here:
        int fila = tablaAsistente.getSelectedRow();
        
        if(camposVacios(dialogAsistente.getContentPane())){
            Dialogo.error(dialogAsistente, "Hay campos vacios");
        }else{
            Asistente asistente = new Asistente();
            asistente.setIdAsistente((Integer)( tablaAsistente.getValueAt(fila, 0)));
            asistente.setDocumento(dtfCedulaAsistente.getText());
            asistente.setNombre(dtfNombreAsistente.getText());
            asistente.setApellido(dtfApellidoAsistente.getText());
            asistente.setTelefono(dtfTelefonoAsistente.getText());
            asistente.setDireccion(dtfDireccionAsistente.getText());
            asistente.setEmail(dtfEmailAsistente.getText());
            asistente.setFechaNac(new SimpleDateFormat("yyyy-MM-dd").format(dtfFechaAsistente.getDate()));
            asistente.setEstado("1");

            if (asistenteDAO.modificar(asistente)) {
                Dialogo.informacion(dialogAsistente,"El asistente ha sido actualizado exitosamente");
                tablaAsistente.setModel(asistenteDAO.seleccionar());
                dialogAsistente.dispose();
            } else {
                Dialogo.error(dialogAsistente, "¡Ha ocurrido un error!");
                dtfCedulaAsistente.requestFocus();
            }
            limpiarFormulario(dialogAsistente.getContentPane());
        }
    }//GEN-LAST:event_dbtnEditarAsistenteActionPerformed

    private void dbtnCancelarEventoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_dbtnCancelarEventoActionPerformed
        dialogEvento.setVisible(false);
        dbtnEditarEvento.setEnabled(true);
        dbtnCrearEvento.setEnabled(true);
        limpiarFormulario(dialogEvento.getContentPane());
    }//GEN-LAST:event_dbtnCancelarEventoActionPerformed

    private void btnCrearLugarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnCrearLugarActionPerformed
        // TODO add your handling code here:
        dbtnCrearLugar.setEnabled(true);
        dbtnEditarLugar.setEnabled(false);
        dialogLugar.pack();
        dialogLugar.setLocationRelativeTo(this);
        dialogLugar.setVisible(true);
    }//GEN-LAST:event_btnCrearLugarActionPerformed

    private void btnModificarLugarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnModificarLugarActionPerformed
        // TODO add your handling code here:
        int fila = tablaLugar.getSelectedRow();
        if (fila < 0) {
            Dialogo.error(this, "¡Debe seleccionar un registro!");
            return;
        }

        Lugar lugar = new Lugar();
        lugar.setIdLugar((Integer)(tablaLugar.getValueAt(fila, 0)));

        if(!lugarDAO.consultar(lugar)){
            Dialogo.error(dialogLugar, "Ha ocurrido un error");
            return;
        }
        
        dtfNombreLugar.setText(lugar.getNombre());
        dtfCapacidadLugar.setText(lugar.getCapacidad()+"");
        dtfDescripcionLugar.setText(lugar.getDescripcion());
        
        dbtnEditarLugar.setEnabled(true);
        dbtnCrearLugar.setEnabled(false);
        dialogLugar.pack();
        dialogLugar.setLocationRelativeTo(this);
        dialogLugar.setVisible(true);
    }//GEN-LAST:event_btnModificarLugarActionPerformed

    private void btnEliminarLugarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnEliminarLugarActionPerformed
        // TODO add your handling code here:
        int fila = tablaLugar.getSelectedRow();
        if (fila < 0) {
            Dialogo.error(this, "¡Debe seleccionar un registro!");
            return;
        }
        int opt = Dialogo.confirmacionSN(this, "¿Realmente desea eliminar este Lugar?");
        if (opt == JOptionPane.YES_OPTION) {
            lugarDAO.eliminar((Integer)( tablaLugar.getValueAt(fila, 0)));
        }
        tablaLugar.setModel(lugarDAO.seleccionar());
    }//GEN-LAST:event_btnEliminarLugarActionPerformed

    private void dbtnCrearMaterialActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_dbtnCrearMaterialActionPerformed
        // TODO add your handling code here:
        if(camposVacios(dialogMaterial.getContentPane())){
            Dialogo.error(dialogMaterial,"Hay campos Vacios");
        }else{
            Material material = new Material();
            material.setNombre(dtfNombreMaterial.getText());
            try{
                material.setCosto(Double.parseDouble(dtfCostoMaterial.getText()));
            }catch(Exception e){Dialogo.error(dialogMaterial, "El costo no es correcto"); return;}
            material.setDescripcion(dtfDescripcionMaterial.getText());
            
            if (materialDAO.crear(material)) {
                Dialogo.informacion(dialogMaterial,"EL material ha sido registrado exitosamente");
                tablaMaterial.setModel(materialDAO.seleccionar());
            } else {
                Dialogo.error(dialogMaterial, "¡Ha ocurrido un error!");
            }//Fin del else
            limpiarFormulario(dialogMaterial.getContentPane());
            dtfNombreMaterial.requestFocus();
        }//Fin del else
    }//GEN-LAST:event_dbtnCrearMaterialActionPerformed

    private void dbtnEditarMaterialActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_dbtnEditarMaterialActionPerformed
        // TODO add your handling code here:
        int fila = tablaMaterial.getSelectedRow();
        
        if(camposVacios(dialogMaterial.getContentPane())){
            Dialogo.error(dialogMaterial, "Hay campos vacios");
        }else{
            Material material = new Material();
            material.setIdMaterial((Integer)( tablaMaterial.getValueAt(fila, 0)));
            material.setNombre(dtfNombreMaterial.getText());
            try{
                material.setCosto(Double.parseDouble(dtfCostoMaterial.getText()));
            }catch(Exception e){Dialogo.error(dialogMaterial, "El costo no es correcto"); return;}
            material.setDescripcion(dtfDescripcionMaterial.getText());            

            if (materialDAO.modificar(material)) {
                Dialogo.informacion(dialogMaterial,"El material ha sido actualizado exitosamente");
                tablaMaterial.setModel(materialDAO.seleccionar());
                dialogMaterial.dispose();
            } else {
                Dialogo.error(dialogMaterial, "¡Ha ocurrido un error!");
                dtfNombreMaterial.requestFocus();
            }
            limpiarFormulario(dialogMaterial.getContentPane());
        }
    }//GEN-LAST:event_dbtnEditarMaterialActionPerformed

    private void dbtnCancelarLugarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_dbtnCancelarLugarActionPerformed
        // TODO add your handling code here:
        dbtnEditarLugar.setEnabled(true);
        dbtnCrearLugar.setEnabled(true);
        dialogLugar.setVisible(false);
        limpiarFormulario(dialogLugar.getContentPane());
    }//GEN-LAST:event_dbtnCancelarLugarActionPerformed

    private void dbtnEditarLugarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_dbtnEditarLugarActionPerformed
        // TODO add your handling code here:
        int fila = tablaLugar.getSelectedRow();
        
        if(camposVacios(dialogLugar.getContentPane())){
            Dialogo.error(dialogLugar, "Hay campos vacios");
        }else{
            Lugar lugar = new Lugar();
            lugar.setIdLugar((Integer)( tablaLugar.getValueAt(fila, 0)));
            lugar.setNombre(dtfNombreLugar.getText());
            try{
                lugar.setCapacidad(Integer.parseInt(dtfCapacidadLugar.getText()));
            }catch(Exception e){Dialogo.error(dialogLugar, "La capacidad no es correcta"); return;}
            lugar.setDescripcion(dtfDescripcionLugar.getText());            

            if (lugarDAO.modificar(lugar)) {
                Dialogo.informacion(dialogLugar,"El lugar ha sido actualizado exitosamente");
                tablaLugar.setModel(lugarDAO.seleccionar());
                dialogLugar.dispose();
            } else {
                Dialogo.error(dialogLugar, "¡Ha ocurrido un error!");
                dtfNombreLugar.requestFocus();
            }
            limpiarFormulario(dialogLugar.getContentPane());
        }
    }//GEN-LAST:event_dbtnEditarLugarActionPerformed

    private void dbtnCrearLugarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_dbtnCrearLugarActionPerformed
        // TODO add your handling code here:
        if(camposVacios(dialogLugar.getContentPane())){
            Dialogo.error(dialogLugar,"Hay campos Vacios");
        }else{
            Lugar lugar = new Lugar();
            lugar.setNombre(dtfNombreLugar.getText());
            try{
                lugar.setCapacidad(Integer.parseInt(dtfCapacidadLugar.getText()));
            }catch(Exception e){Dialogo.error(dialogLugar, "La capacidad no es correcta"); return;}
            lugar.setDescripcion(dtfDescripcionLugar.getText());
            
            if (lugarDAO.crear(lugar)) {
                Dialogo.informacion(dialogLugar,"El lugar ha sido registrado exitosamente");
                tablaLugar.setModel(lugarDAO.seleccionar());
            } else {
                Dialogo.error(dialogLugar, "¡Ha ocurrido un error!");
            }//Fin del else
            limpiarFormulario(dialogLugar.getContentPane());
            dtfNombreLugar.requestFocus();
        }//Fin del else
    }//GEN-LAST:event_dbtnCrearLugarActionPerformed

    private void dbtnCrearEventoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_dbtnCrearEventoActionPerformed
        // TODO add your handling code here:
        if(camposVacios(dialogEvento.getContentPane())){
            Dialogo.error(dialogEvento,"Hay campos Vacios");
        }else{
            Evento evento = new Evento();
            evento.setNombre(dtfNombreEvento.getText());
            evento.setTipo(comboTipoEvento.getItemAt(comboTipoEvento.getSelectedIndex()).toString());
            
            try{
                evento.setCupo(Integer.parseInt(dtfCupoEvento.getText()));
            }catch(Exception e){Dialogo.error(dialogEvento, "Cupo es un entero"); return;}
            
            evento.setFecha_inicio(cambiarFecha(dateFechaInicioEvento.getDateEditor().getDate().toString()));
            evento.setFecha_final(cambiarFecha(dateFechaFinalEvento.getDateEditor().getDate().toString()));
            
            evento.setHora_inicio(spinHoraInicioEvento.getValue() < 10 ? "0"+spinHoraInicioEvento.getValue()
                    : spinHoraInicioEvento.getValue()+":"
                    +spinMinutoInicioEvento.getValue()+spinMinutoInicio2Evento.getValue()+":00");
            evento.setHora_final(spinHoraFinalEvento.getValue() < 10 ? "0"+spinHoraFinalEvento.getValue()
                    : spinHoraFinalEvento.getValue()+":"
                    +spinMinutoFinalEvento.getValue()+spinMinutoFinal2Evento.getValue()+":00");
            
            evento.setTema(dtfTemaEvento.getText());
            
            try{
                evento.setPrecio(Double.parseDouble(dtfPrecioEvento.getText()));
            }catch(Exception e){Dialogo.error(dialogEvento, "Precio es de tipo double"); return;}
            
            evento.setExpositor(comboExpositorEvento.getItemAt(comboExpositorEvento.getSelectedIndex()).toString());
            
            try{
                evento.setPago_expositor(Double.parseDouble(dtfPagoExpositorEvento.getText()));
            }catch(Exception e){Dialogo.error(dialogEvento, "Pago a expositor es de tipo double"); return;}
            
            evento.setLugar(comboLugarEvento.getItemAt(comboLugarEvento.getSelectedIndex()).toString());
            evento.setMaterial(comboMaterialEvento.getItemAt(comboMaterialEvento.getSelectedIndex()).toString());
            evento.setEstado("1");
            
            
            if (eventoDAO.crear(evento)) {
                Dialogo.informacion(dialogEvento,"El evento ha sido registrado exitosamente");
                tablaEvento.setModel(eventoDAO.seleccionar());
            } else {
                Dialogo.error(dialogEvento, "¡Ha ocurrido un error!");
            }//Fin del else
            limpiarFormulario(dialogEvento.getContentPane());
            dtfNombreEvento.requestFocus();
        }//Fin del else
        //System.out.println(comboTipoEvento.getItemAt(comboTipoEvento.getSelectedIndex()).toString());
        //System.out.println(cambiarFecha(dateFechaInicioEvento.getDateEditor().getDate().toString()));
    }//GEN-LAST:event_dbtnCrearEventoActionPerformed

    private void tfEscarapelaDocumentoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_tfEscarapelaDocumentoActionPerformed
        String text = tfEscarapelaDocumento.getText();
        limpiarFormulario(PanelEscarapela);
        try {
            Asistente a = new Asistente();
            a.setDocumento(text);
            if (asistenteDAO.consultar(a)) {
                tfEscarapelaDocumento.setText(a.getDocumento());
                tfEscarapelaNombre.setText(a.getNombre() + " " + a.getApellido());
                tfEscarapelaEmail.setText(a.getEmail());
                tfEscarapelaTelefono.setText(a.getTelefono());
                escarapelasAsistente = true;
            } else {
                Expositor e = new Expositor();
                e.setDocumento(text);
                if (expositorDAO.consultar(e)) {
                    tfEscarapelaDocumento.setText(e.getDocumento());
                    tfEscarapelaNombre.setText(e.getNombre() + " " + e.getApellido());
                    tfEscarapelaEmail.setText(e.getEmail());
                    tfEscarapelaTelefono.setText(e.getTelefono());
                    escarapelasAsistente = false;
                }
            }

        } catch (Exception ex) {
            Dialogo.error(this, "Es necesario que digíte un dato correcto");
            tfEscarapelaDocumento.requestFocus();
        };
    }//GEN-LAST:event_tfEscarapelaDocumentoActionPerformed

    private void btnMatricularActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnMatricularActionPerformed
        int fila = tablaAsistente.getSelectedRow();
        if (fila < 0) {
            Dialogo.error(dialogAsistente, "¡Debe seleccionar un registro!");
            return;
        }
        
        Asistente asistente = new Asistente();
        asistente.setIdAsistente((Integer)( tablaAsistente.getValueAt(fila, 0)));
         if(!asistenteDAO.consultar(asistente)){
            Dialogo.error(this, "No puedes matricular un asistente inactivo");
            return;
        }
        
        limpiarFormulario(dialogMatricula.getContentPane());
        
        jcbMatriculaEvento.setModel(new DefaultComboBoxModel(eventoDAO.listar().toArray()));
        dialogMatricula.pack();
        dialogMatricula.setVisible(true);
    }//GEN-LAST:event_btnMatricularActionPerformed

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
          dialogMatricula.dispose();
    }//GEN-LAST:event_jButton1ActionPerformed

    private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed
        
        if(camposVacios(dialogMatricula.getContentPane())){
            Dialogo.error(dialogMatricula,"Hay campos Vacios");
            return;
        }
        
        int fila = tablaAsistente.getSelectedRow();
        Asistente asistente = new Asistente();
        asistente.setIdAsistente((Integer)( tablaAsistente.getValueAt(fila, 0)));
       
        Evento evento = (Evento) jcbMatriculaEvento.getSelectedItem();
        
        Recibo recibo = new Recibo();
        recibo.setCodigo(String.valueOf((int)100000*Math.random()));
        recibo.setFechaExp(new Date());
        recibo.setObservacion(tfMatriculaCosto.getText());
        
        reciboDAO.crear(recibo);
        
        Pago pago = new Pago();
        pago.setObservacion(null);
        pago.setValor(new Integer(tfMatriculaValorPago.getText()).intValue());
        pago.setTipo(jcbMatriculaTipoPago.getSelectedIndex()==1? "E" : "T");
        
        AsistenteEventoPK asistenteEventoPK = new AsistenteEventoPK();
        asistenteEventoPK.setEventoIdEvento(evento.getIdEvento().intValue());
        asistenteEventoPK.setAsistenteIdAsistente(asistente.getIdAsistente().intValue());
        
        AsistenteEvento asistenteEvento = new AsistenteEvento();
        asistenteEvento.setAsistenteEventoPK(asistenteEventoPK);
        asistenteEvento.setAprobado("NO");
        asistenteEvento.setObservacion(tfMatriculaCosto.getText());
        
        
        
        asistenteEventoDAO.crear(asistenteEvento);
    }//GEN-LAST:event_jButton2ActionPerformed

    private void btnActivarEventoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnActivarEventoActionPerformed
        // TODO add your handling code here:
        int fila = tablaEvento.getSelectedRow();
        if (fila < 0) {
            Dialogo.error(PanelEvento, "¡Debe seleccionar un registro!");
            return;
        }
        int opt = Dialogo.confirmacionSN(this, "¿Realmente desea Activar este evento?");
        if (opt == JOptionPane.YES_OPTION) {
            eventoDAO.eliminar((Integer)( tablaEvento.getValueAt(fila, 0)), 1);
        }
        tablaEvento.setModel(eventoDAO.seleccionar());
    }//GEN-LAST:event_btnActivarEventoActionPerformed

    private String cambiarFecha(String date){
        System.out.println(date);
        String ndate = "";
        ndate += date.substring(24, 28) +"/";
        ndate += cambiarMes(date.substring(4, 7)) +"/";
        ndate += date.substring(8, 10);
        return ndate;        
    }
    
    private String cambiarMes(String m){
        String mes="";
        if(m.equals("Jan")) mes="01";
        if(m.equals("Feb")) mes="02";
        if(m.equals("Mar")) mes="03";
        if(m.equals("Apr")) mes="04";
        if(m.equals("May")) mes="05";
        if(m.equals("Jun")) mes="06";
        if(m.equals("Jul")) mes="07";
        if(m.equals("Aug")) mes="08";
        if(m.equals("Sep")) mes="09";
        if(m.equals("Oct")) mes="10";
        if(m.equals("Nov")) mes="11";
        if(m.equals("Dec")) mes="12";
        return mes;
    }
    
    private void limpiarFormulario(Container form) {
        Component[] componentes = form.getComponents();

        for (int i = 0; i < componentes.length; i++) {
            Component componente = componentes[i];
            if (componente instanceof JPanel) {
                limpiarFormulario((Container) componente);
            } else {
                if (componente instanceof JTextComponent) {
                    ((JTextComponent) componente).setText("");
                } else if (componente instanceof JComboBox) {
                    ((JComboBox) componente).setSelectedIndex(0);
                }
            }

        }
    }//fin LimpiarFormulario
    
    private boolean camposVacios(Container form){
        boolean ret = false;
        Component[] componentes = form.getComponents();
        
        for (int i = 0; i < componentes.length; i++) {
            Component componente = componentes[i];
            if (componente instanceof JPanel) {
               ret = ret || camposVacios((Container) componente);
            } else {
                if (componente instanceof JTextComponent) {
                    if(((JTextComponent) componente).getText().equals(""))
                        return true;
                }
            }
        }
        return ret;
    }
    
    /**
     * @param args the command line arguments
     */
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JPanel PanelEscarapela;
    private javax.swing.JPanel PanelEvento;
    private javax.swing.JPanel PanelExpositor;
    private javax.swing.JPanel PanelHorario;
    private javax.swing.JPanel PanelInicio;
    private javax.swing.JPanel PanelLugar;
    private javax.swing.JPanel PanelMaterial;
    private javax.swing.JPanel PanelOpciones;
    private javax.swing.JPanel PanelPago;
    private javax.swing.JPanel PanelPrincipal;
    private javax.swing.JPanel PanelReportes;
    private javax.swing.JPanel PanelUsuarios;
    private javax.swing.JPanel PanelVisorEscarapela;
    private javax.swing.JPanel PanelVisorReportes;
    private javax.swing.JButton brnCancelar;
    private javax.swing.JButton btGenerarReporte;
    private javax.swing.JButton btnAceptarEscarapela;
    private javax.swing.JButton btnActivarAsistente;
    private javax.swing.JButton btnActivarEvento;
    private javax.swing.JButton btnActivarExpositor;
    private javax.swing.JButton btnCerrarSesion;
    private javax.swing.JButton btnCrearAsistente;
    private javax.swing.JButton btnCrearLugar;
    private javax.swing.JButton btnCrearMaterial;
    private javax.swing.JButton btnEditarEvento;
    private javax.swing.JButton btnEditarExpositor;
    private javax.swing.JButton btnEditarUsuario;
    private javax.swing.JButton btnEliminarAsistente;
    private javax.swing.JButton btnEliminarEvento;
    private javax.swing.JButton btnEliminarExpositor;
    private javax.swing.JButton btnEliminarLugar;
    private javax.swing.JButton btnEliminarMaterial;
    private javax.swing.JButton btnEliminarUsuario;
    private javax.swing.JButton btnHabilitarUsuario;
    private javax.swing.JButton btnIngresar;
    private javax.swing.JButton btnMatricular;
    private javax.swing.JButton btnModificarAsistente;
    private javax.swing.JButton btnModificarLugar;
    private javax.swing.JButton btnModificarMaterial;
    private javax.swing.JButton btnNuevo;
    private javax.swing.JButton btnNuevoEvento;
    private javax.swing.JButton btnNuevoExpositor;
    private javax.swing.JButton btnNuevoPago;
    private javax.swing.JButton btnRefresh;
    private javax.swing.JButton btnSalir;
    private javax.swing.JButton btnVerAsistentesEvento;
    private javax.swing.JButton btnVerMaterialesEvento;
    private javax.swing.JComboBox comboExpositorEvento;
    private javax.swing.JComboBox comboLugarEvento;
    private javax.swing.JComboBox comboMaterialEvento;
    private javax.swing.JComboBox comboTipoEvento;
    private com.toedter.calendar.JDateChooser dateFechaFinalEvento;
    private com.toedter.calendar.JDateChooser dateFechaInicioEvento;
    private javax.swing.JButton dbtnCancelarAsistente;
    private javax.swing.JButton dbtnCancelarEvento;
    private javax.swing.JButton dbtnCancelarExpositor;
    private javax.swing.JButton dbtnCancelarLugar;
    private javax.swing.JButton dbtnCancelarMaterial;
    private javax.swing.JButton dbtnCancelarPago;
    private javax.swing.JButton dbtnCancelarUsuario;
    private javax.swing.JButton dbtnCrearAsistente;
    private javax.swing.JButton dbtnCrearEvento;
    private javax.swing.JButton dbtnCrearExpositor;
    private javax.swing.JButton dbtnCrearLugar;
    private javax.swing.JButton dbtnCrearMaterial;
    private javax.swing.JButton dbtnCrearUsuario;
    private javax.swing.JButton dbtnEditarAsistente;
    private javax.swing.JButton dbtnEditarEvento;
    private javax.swing.JButton dbtnEditarExpositor;
    private javax.swing.JButton dbtnEditarLugar;
    private javax.swing.JButton dbtnEditarMaterial;
    private javax.swing.JButton dbtnEditarUsuario;
    private javax.swing.JButton dbtnPagar;
    private javax.swing.JDialog dialogAsistente;
    private javax.swing.JDialog dialogEvento;
    private javax.swing.JDialog dialogExpositor;
    private javax.swing.JDialog dialogLogin;
    private javax.swing.JDialog dialogLugar;
    private javax.swing.JDialog dialogMaterial;
    private javax.swing.JDialog dialogMatricula;
    private javax.swing.JDialog dialogPago;
    private javax.swing.JDialog dialogUsuario;
    private javax.swing.JLabel dlbApellidoAsistente;
    private javax.swing.JLabel dlbApellidoExpositor;
    private javax.swing.JLabel dlbCapacidadLugar;
    private javax.swing.JLabel dlbCedulaAsistente;
    private javax.swing.JLabel dlbCedulaExpositor1;
    private javax.swing.JLabel dlbClientePago;
    private javax.swing.JLabel dlbCostoMaterial;
    private javax.swing.JLabel dlbCupoEvento;
    private javax.swing.JLabel dlbDescripcionLugar;
    private javax.swing.JLabel dlbDescripcionMaterial;
    private javax.swing.JLabel dlbDireccionAsistente;
    private javax.swing.JLabel dlbDireccionExpositor;
    private javax.swing.JLabel dlbEmailAsistente;
    private javax.swing.JLabel dlbEmailExpositor;
    private javax.swing.JLabel dlbEventoPago;
    private javax.swing.JLabel dlbExpositorEvento;
    private javax.swing.JLabel dlbFechaAsistente;
    private javax.swing.JLabel dlbFechaFinalEvento;
    private javax.swing.JLabel dlbFechaInicioEvento;
    private javax.swing.JLabel dlbFechaPago;
    private javax.swing.JLabel dlbHoraFinalEvento;
    private javax.swing.JLabel dlbHoraInicioEvento;
    private javax.swing.JLabel dlbLugarEvento;
    private javax.swing.JLabel dlbMaterialEvento;
    private javax.swing.JLabel dlbNombreAsistente;
    private javax.swing.JLabel dlbNombreEvento;
    private javax.swing.JLabel dlbNombreExpositor;
    private javax.swing.JLabel dlbNombreLugar;
    private javax.swing.JLabel dlbNombreMaterial;
    private javax.swing.JLabel dlbPagoExpositor;
    private javax.swing.JLabel dlbPerfilExpositor;
    private javax.swing.JLabel dlbPrecioEvento;
    private javax.swing.JLabel dlbTelefonoAsistente;
    private javax.swing.JLabel dlbTelefonoExpositor;
    private javax.swing.JLabel dlbTemaEvento;
    private javax.swing.JLabel dlbTipoClientePago;
    private javax.swing.JLabel dlbTipoEvento;
    private javax.swing.JLabel dlbTipoPago;
    private javax.swing.JLabel dlbTituloExpositor;
    private javax.swing.JLabel dlbValorPago;
    private javax.swing.JTextField dtfApellidoAsistente;
    private javax.swing.JTextField dtfApellidoExpositor;
    private javax.swing.JTextField dtfCapacidadLugar;
    private javax.swing.JTextField dtfCedulaAsistente;
    private javax.swing.JTextField dtfCedulaExpositor;
    private javax.swing.JComboBox dtfClientePago;
    private javax.swing.JTextField dtfCostoMaterial;
    private javax.swing.JTextField dtfCupoEvento;
    private javax.swing.JTextField dtfDescripcionLugar;
    private javax.swing.JTextField dtfDescripcionMaterial;
    private javax.swing.JTextField dtfDireccionAsistente;
    private javax.swing.JTextField dtfDireccionExpositor;
    private javax.swing.JTextField dtfEmailAsistente;
    private javax.swing.JTextField dtfEmailExpositor;
    private javax.swing.JTextField dtfEventoPago;
    private com.toedter.calendar.JDateChooser dtfFechaAsistente;
    private javax.swing.JFormattedTextField dtfFechaPago;
    private javax.swing.JTextField dtfNombreAsistente;
    private javax.swing.JTextField dtfNombreEvento;
    private javax.swing.JTextField dtfNombreExpositor;
    private javax.swing.JTextField dtfNombreLugar;
    private javax.swing.JTextField dtfNombreMaterial;
    private javax.swing.JTextField dtfPagoExpositorEvento;
    private javax.swing.JTextField dtfPerfilExpositor;
    private javax.swing.JTextField dtfPrecioEvento;
    private javax.swing.JTextField dtfTelefonoAsistente;
    private javax.swing.JTextField dtfTelefonoExpositor;
    private javax.swing.JTextField dtfTemaEvento;
    private javax.swing.JComboBox dtfTipoClientePago;
    private javax.swing.JComboBox dtfTipoPago;
    private javax.swing.JTextField dtfTituloExpositor;
    private javax.swing.JTextField dtfValorPago;
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton2;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel10;
    private javax.swing.JPanel jPanel11;
    private javax.swing.JPanel jPanel12;
    private javax.swing.JPanel jPanel13;
    private javax.swing.JPanel jPanel14;
    private javax.swing.JPanel jPanel15;
    private javax.swing.JPanel jPanel16;
    private javax.swing.JPanel jPanel17;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JPanel jPanel5;
    private javax.swing.JPanel jPanel6;
    private javax.swing.JPanel jPanel7;
    private javax.swing.JPanel jPanel8;
    private javax.swing.JPanel jPanel9;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JScrollPane jScrollPane3;
    private javax.swing.JScrollPane jScrollPane4;
    private javax.swing.JScrollPane jScrollPane5;
    private javax.swing.JScrollPane jScrollPane6;
    private javax.swing.JScrollPane jScrollPane7;
    private javax.swing.JScrollPane jScrollPane8;
    private javax.swing.JComboBox jcbListaReportes;
    private javax.swing.JComboBox jcbMatriculaEvento;
    private javax.swing.JComboBox jcbMatriculaTipoPago;
    private javax.swing.JLabel lbAcceder;
    private javax.swing.JLabel lbContraseña;
    private javax.swing.JLabel lbEventoEscarapela;
    private javax.swing.JLabel lbIDEscarapela;
    private javax.swing.JLabel lbLugarEscarapela;
    private javax.swing.JLabel lbNombreEscarapela;
    private javax.swing.JLabel lbParticipanteEscarapela;
    private javax.swing.JLabel lbUsuario;
    private javax.swing.JLabel lbUsuario1;
    private javax.swing.JLabel lblBienvenido;
    private javax.swing.JLabel lblUsuarioInicio;
    private javax.swing.JPanel panelAsistente;
    private javax.swing.JTabbedPane panelSeleccion;
    private javax.swing.JComboBox slParticipanteEscarapela;
    private com.toedter.components.JSpinField spinHoraFinalEvento;
    private com.toedter.components.JSpinField spinHoraInicioEvento;
    private com.toedter.components.JSpinField spinMinutoFinal2Evento;
    private com.toedter.components.JSpinField spinMinutoFinalEvento;
    private com.toedter.components.JSpinField spinMinutoInicio2Evento;
    private com.toedter.components.JSpinField spinMinutoInicioEvento;
    private javax.swing.JTable tablaAsistente;
    private javax.swing.JTable tablaEvento;
    private javax.swing.JTable tablaExpositor;
    private javax.swing.JTable tablaHorario;
    private javax.swing.JTable tablaLugar;
    private javax.swing.JTable tablaMaterial;
    private javax.swing.JTable tablaPago;
    private javax.swing.JTable tablaUsuarios;
    private javax.swing.JTextField tfApellidoUsuario;
    private javax.swing.JTextField tfCargoUsuario;
    private javax.swing.JPasswordField tfClaveUsuario;
    private javax.swing.JPasswordField tfContraseña;
    private javax.swing.JTextField tfDireccionUsuario;
    private javax.swing.JTextField tfDocumentoUsuario;
    private javax.swing.JTextField tfEscarapelaDocumento;
    private javax.swing.JTextField tfEscarapelaEmail;
    private javax.swing.JTextField tfEscarapelaNombre;
    private javax.swing.JTextField tfEscarapelaTelefono;
    private javax.swing.JTextField tfMatriculaCosto;
    private javax.swing.JTextField tfMatriculaObservacionPago;
    private javax.swing.JTextField tfMatriculaValorPago;
    private javax.swing.JTextField tfNombreUsuario;
    private javax.swing.JTextField tfTelefonoUsuario;
    private javax.swing.JComboBox tfTipoUsuario;
    private javax.swing.JTextField tfUsuario;
    // End of variables declaration//GEN-END:variables
}
